import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * DomainVerificationStatus represents the current state of domain verification * * @generated from enum svc.v1.DomainVerificationStatus */ export declare enum DomainVerificationStatus { /** * Pending verification - DNS TXT record not yet confirmed * * @generated from enum value: DOMAIN_VERIFICATION_STATUS_PENDING = 0; */ PENDING = 0, /** * Successfully verified - DNS TXT record confirmed * * @generated from enum value: DOMAIN_VERIFICATION_STATUS_VERIFIED = 1; */ VERIFIED = 1, /** * Verification expired - exceeded time limit * * @generated from enum value: DOMAIN_VERIFICATION_STATUS_EXPIRED = 2; */ EXPIRED = 2, /** * Verification failed - DNS lookup failed or record mismatch * * @generated from enum value: DOMAIN_VERIFICATION_STATUS_FAILED = 3; */ FAILED = 3 } /** * ServiceStatus represents the operational state of a service * * @generated from enum svc.v1.ServiceStatus */ export declare enum ServiceStatus { /** * Service is active and operational * * @generated from enum value: SERVICE_STATUS_ACTIVE = 0; */ ACTIVE = 0, /** * Service is temporarily suspended * * @generated from enum value: SERVICE_STATUS_SUSPENDED = 1; */ SUSPENDED = 1, /** * Service has been permanently revoked * * @generated from enum value: SERVICE_STATUS_REVOKED = 2; */ REVOKED = 2 } /** * Service represents a registered service with domain binding and UCAN * capabilities * * @generated from message svc.v1.Service */ export declare class Service extends Message { /** * Unique identifier for the service * * @generated from field: string id = 1; */ id: string; /** * DNS-verified domain bound to this service * * @generated from field: string domain = 2; */ domain: string; /** * Owner address who registered the service * * @generated from field: string owner = 3; */ owner: string; /** * IPFS CID of the UCAN root capability for this service * * @generated from field: string root_capability_cid = 4; */ rootCapabilityCid: string; /** * List of permissions granted to this service * * @generated from field: repeated string permissions = 5; */ permissions: string[]; /** * Current status of the service * * @generated from field: svc.v1.ServiceStatus status = 6; */ status: ServiceStatus; /** * Unix timestamp when the service was registered * * @generated from field: int64 created_at = 7; */ createdAt: bigint; /** * Unix timestamp of last update * * @generated from field: int64 updated_at = 8; */ updatedAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.Service"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Service; static fromJson(jsonValue: JsonValue, options?: Partial): Service; static fromJsonString(jsonString: string, options?: Partial): Service; static equals(a: Service | PlainMessage | undefined, b: Service | PlainMessage | undefined): boolean; } /** * DomainVerification represents a domain ownership verification record * * @generated from message svc.v1.DomainVerification */ export declare class DomainVerification extends Message { /** * The domain being verified (e.g., "example.com") * * @generated from field: string domain = 1; */ domain: string; /** * The owner's address who initiated the verification * * @generated from field: string owner = 2; */ owner: string; /** * Unique verification token to be placed in DNS TXT record * * @generated from field: string verification_token = 3; */ verificationToken: string; /** * Current status of domain verification * * @generated from field: svc.v1.DomainVerificationStatus status = 4; */ status: DomainVerificationStatus; /** * Unix timestamp when the verification expires if not completed * * @generated from field: int64 expires_at = 5; */ expiresAt: bigint; /** * Unix timestamp when the domain was verified (if applicable) * * @generated from field: int64 verified_at = 6; */ verifiedAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.DomainVerification"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DomainVerification; static fromJson(jsonValue: JsonValue, options?: Partial): DomainVerification; static fromJsonString(jsonString: string, options?: Partial): DomainVerification; static equals(a: DomainVerification | PlainMessage | undefined, b: DomainVerification | PlainMessage | undefined): boolean; } /** * ServiceCapability represents a service-specific capability with permissions * * @generated from message svc.v1.ServiceCapability */ export declare class ServiceCapability extends Message { /** * Unique identifier for the capability * * @generated from field: string capability_id = 1; */ capabilityId: string; /** * Service ID this capability belongs to * * @generated from field: string service_id = 2; */ serviceId: string; /** * DNS domain associated with the capability * * @generated from field: string domain = 3; */ domain: string; /** * List of abilities/actions granted by this capability * * @generated from field: repeated string abilities = 4; */ abilities: string[]; /** * Owner address who holds this capability * * @generated from field: string owner = 5; */ owner: string; /** * Unix timestamp when the capability was created * * @generated from field: int64 created_at = 6; */ createdAt: bigint; /** * Unix timestamp when the capability expires (0 for no expiration) * * @generated from field: int64 expires_at = 7; */ expiresAt: bigint; /** * Whether this capability has been revoked * * @generated from field: bool revoked = 8; */ revoked: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.ServiceCapability"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServiceCapability; static fromJson(jsonValue: JsonValue, options?: Partial): ServiceCapability; static fromJsonString(jsonString: string, options?: Partial): ServiceCapability; static equals(a: ServiceCapability | PlainMessage | undefined, b: ServiceCapability | PlainMessage | undefined): boolean; } /** * ServiceResource represents a resource that can be accessed with capabilities * * @generated from message svc.v1.ServiceResource */ export declare class ServiceResource extends Message { /** * Unique identifier for the resource * * @generated from field: string resource_id = 1; */ resourceId: string; /** * Service ID this resource belongs to * * @generated from field: string service_id = 2; */ serviceId: string; /** * Type of resource (e.g., "api", "data", "file") * * @generated from field: string resource_type = 3; */ resourceType: string; /** * List of abilities that can be performed on this resource * * @generated from field: repeated string allowed_abilities = 4; */ allowedAbilities: string[]; /** * Additional metadata for the resource * * @generated from field: map metadata = 5; */ metadata: { [key: string]: string; }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.ServiceResource"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServiceResource; static fromJson(jsonValue: JsonValue, options?: Partial): ServiceResource; static fromJsonString(jsonString: string, options?: Partial): ServiceResource; static equals(a: ServiceResource | PlainMessage | undefined, b: ServiceResource | PlainMessage | undefined): boolean; } /** * ServiceOIDCConfig represents OpenID Connect configuration for a service * * @generated from message svc.v1.ServiceOIDCConfig */ export declare class ServiceOIDCConfig extends Message { /** * Service ID this OIDC config belongs to * * @generated from field: string service_id = 1; */ serviceId: string; /** * OIDC issuer URL (must match the service's verified domain) * * @generated from field: string issuer = 2; */ issuer: string; /** * Authorization endpoint URL * * @generated from field: string authorization_endpoint = 3; */ authorizationEndpoint: string; /** * Token endpoint URL * * @generated from field: string token_endpoint = 4; */ tokenEndpoint: string; /** * JWKS URI for public key retrieval * * @generated from field: string jwks_uri = 5; */ jwksUri: string; /** * UserInfo endpoint URL * * @generated from field: string userinfo_endpoint = 6; */ userinfoEndpoint: string; /** * Supported OIDC scopes for this service * * @generated from field: repeated string scopes_supported = 7; */ scopesSupported: string[]; /** * Supported response types * * @generated from field: repeated string response_types_supported = 8; */ responseTypesSupported: string[]; /** * Supported grant types * * @generated from field: repeated string grant_types_supported = 9; */ grantTypesSupported: string[]; /** * ID token signing algorithm values supported * * @generated from field: repeated string id_token_signing_alg_values_supported = 10; */ idTokenSigningAlgValuesSupported: string[]; /** * Subject types supported * * @generated from field: repeated string subject_types_supported = 11; */ subjectTypesSupported: string[]; /** * Token endpoint auth methods supported * * @generated from field: repeated string token_endpoint_auth_methods_supported = 12; */ tokenEndpointAuthMethodsSupported: string[]; /** * Claims supported in ID tokens * * @generated from field: repeated string claims_supported = 13; */ claimsSupported: string[]; /** * Response modes supported * * @generated from field: repeated string response_modes_supported = 14; */ responseModesSupported: string[]; /** * Additional OIDC metadata as key-value pairs * * @generated from field: map metadata = 15; */ metadata: { [key: string]: string; }; /** * Unix timestamp when this config was created * * @generated from field: int64 created_at = 16; */ createdAt: bigint; /** * Unix timestamp when this config was last updated * * @generated from field: int64 updated_at = 17; */ updatedAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.ServiceOIDCConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServiceOIDCConfig; static fromJson(jsonValue: JsonValue, options?: Partial): ServiceOIDCConfig; static fromJsonString(jsonString: string, options?: Partial): ServiceOIDCConfig; static equals(a: ServiceOIDCConfig | PlainMessage | undefined, b: ServiceOIDCConfig | PlainMessage | undefined): boolean; } /** * JWK represents a JSON Web Key for OIDC * * @generated from message svc.v1.JWK */ export declare class JWK extends Message { /** * Key type (e.g., "RSA", "EC") * * @generated from field: string kty = 1; */ kty: string; /** * Key use (e.g., "sig", "enc") * * @generated from field: string use = 2; */ use: string; /** * Key ID * * @generated from field: string kid = 3; */ kid: string; /** * Algorithm (e.g., "RS256", "ES256") * * @generated from field: string alg = 4; */ alg: string; /** * RSA modulus (for RSA keys) * * @generated from field: string n = 5; */ n: string; /** * RSA exponent (for RSA keys) * * @generated from field: string e = 6; */ e: string; /** * Elliptic curve (for EC keys) * * @generated from field: string crv = 7; */ crv: string; /** * X coordinate (for EC keys) * * @generated from field: string x = 8; */ x: string; /** * Y coordinate (for EC keys) * * @generated from field: string y = 9; */ y: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.JWK"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): JWK; static fromJson(jsonValue: JsonValue, options?: Partial): JWK; static fromJsonString(jsonString: string, options?: Partial): JWK; static equals(a: JWK | PlainMessage | undefined, b: JWK | PlainMessage | undefined): boolean; } /** * ServiceJWKS represents the JSON Web Key Set for a service * * @generated from message svc.v1.ServiceJWKS */ export declare class ServiceJWKS extends Message { /** * Service ID this JWKS belongs to * * @generated from field: string service_id = 1; */ serviceId: string; /** * List of public keys * * @generated from field: repeated svc.v1.JWK keys = 2; */ keys: JWK[]; /** * Unix timestamp when this JWKS was last rotated * * @generated from field: int64 rotated_at = 3; */ rotatedAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "svc.v1.ServiceJWKS"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServiceJWKS; static fromJson(jsonValue: JsonValue, options?: Partial): ServiceJWKS; static fromJsonString(jsonString: string, options?: Partial): ServiceJWKS; static equals(a: ServiceJWKS | PlainMessage | undefined, b: ServiceJWKS | PlainMessage | undefined): boolean; } //# sourceMappingURL=state_pb.d.ts.map