@blimu/backend 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{schema-CdEZKE7E.d.mts → schema-DlLjJUTG.d.mts} +12 -2
- package/dist/{schema-CdEZKE7E.d.ts → schema-DlLjJUTG.d.ts} +12 -2
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/services/auth_jwks.d.mts +1 -1
- package/dist/services/auth_jwks.d.ts +1 -1
- package/dist/services/bulk_resources.d.mts +1 -1
- package/dist/services/bulk_resources.d.ts +1 -1
- package/dist/services/bulk_roles.d.mts +1 -1
- package/dist/services/bulk_roles.d.ts +1 -1
- package/dist/services/entitlements.d.mts +1 -1
- package/dist/services/entitlements.d.ts +1 -1
- package/dist/services/oauth.d.mts +1 -1
- package/dist/services/oauth.d.ts +1 -1
- package/dist/services/plans.d.mts +1 -1
- package/dist/services/plans.d.ts +1 -1
- package/dist/services/resource_members.d.mts +1 -1
- package/dist/services/resource_members.d.ts +1 -1
- package/dist/services/resources.d.mts +1 -1
- package/dist/services/resources.d.ts +1 -1
- package/dist/services/roles.d.mts +1 -1
- package/dist/services/roles.d.ts +1 -1
- package/dist/services/usage.d.mts +1 -1
- package/dist/services/usage.d.ts +1 -1
- package/dist/services/users.d.mts +1 -1
- package/dist/services/users.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -132,6 +132,15 @@ interface JWK {
|
|
|
132
132
|
use: string;
|
|
133
133
|
}[];
|
|
134
134
|
}
|
|
135
|
+
interface OAuthAccessTokenPayload {
|
|
136
|
+
client_id: string;
|
|
137
|
+
environment_id: string;
|
|
138
|
+
exp: number;
|
|
139
|
+
iat: number;
|
|
140
|
+
scope: string;
|
|
141
|
+
sub: string;
|
|
142
|
+
token_type: string;
|
|
143
|
+
}
|
|
135
144
|
interface PlanAssignBody {
|
|
136
145
|
planKey: PlanType;
|
|
137
146
|
}
|
|
@@ -494,6 +503,7 @@ type schema_Enum<T> = Enum<T>;
|
|
|
494
503
|
type schema_IntrospectionRequest = IntrospectionRequest;
|
|
495
504
|
type schema_IntrospectionResponse = IntrospectionResponse;
|
|
496
505
|
type schema_JWK = JWK;
|
|
506
|
+
type schema_OAuthAccessTokenPayload = OAuthAccessTokenPayload;
|
|
497
507
|
type schema_OauthCheckConsentRequiredQuery = OauthCheckConsentRequiredQuery;
|
|
498
508
|
type schema_PlanAssignBody = PlanAssignBody;
|
|
499
509
|
type schema_PlanDeleteResponse = PlanDeleteResponse;
|
|
@@ -530,7 +540,7 @@ type schema_UserResourceList = UserResourceList;
|
|
|
530
540
|
type schema_UserUpdateBody = UserUpdateBody;
|
|
531
541
|
type schema_UsersListQuery = UsersListQuery;
|
|
532
542
|
declare namespace schema {
|
|
533
|
-
export type { schema_AuthJwksGetOAuthAppJwksQuery as AuthJwksGetOAuthAppJwksQuery, schema_AuthorizeRequest as AuthorizeRequest, schema_BalanceResponse as BalanceResponse, schema_CheckLimitResponse as CheckLimitResponse, schema_ConsentCheckResponse as ConsentCheckResponse, schema_DeviceAuthorizeRequest as DeviceAuthorizeRequest, schema_DeviceAuthorizeResponse as DeviceAuthorizeResponse, schema_DeviceCodeInfoResponse as DeviceCodeInfoResponse, schema_DeviceCodeRequest as DeviceCodeRequest, schema_DeviceCodeResponse as DeviceCodeResponse, schema_DeviceTokenRequest as DeviceTokenRequest, schema_EntitlementCheckBody as EntitlementCheckBody, schema_EntitlementCheckResult as EntitlementCheckResult, schema_EntitlementsListForResourceQuery as EntitlementsListForResourceQuery, schema_EntitlementsListForTenantQuery as EntitlementsListForTenantQuery, schema_EntitlementsListResult as EntitlementsListResult, schema_Enum as Enum, schema_IntrospectionRequest as IntrospectionRequest, schema_IntrospectionResponse as IntrospectionResponse, schema_JWK as JWK, schema_OauthCheckConsentRequiredQuery as OauthCheckConsentRequiredQuery, schema_PlanAssignBody as PlanAssignBody, schema_PlanDeleteResponse as PlanDeleteResponse, schema_PlanResponse as PlanResponse, schema_Resource as Resource, schema_ResourceBulkCreateBody as ResourceBulkCreateBody, schema_ResourceBulkResult as ResourceBulkResult, schema_ResourceCreateBody as ResourceCreateBody, schema_ResourceList as ResourceList, schema_ResourceMemberList as ResourceMemberList, schema_ResourceMembersListQuery as ResourceMembersListQuery, schema_ResourceUpdateBody as ResourceUpdateBody, schema_ResourcesListQuery as ResourcesListQuery, schema_RevocationRequest as RevocationRequest, schema_Role as Role, schema_RoleBulkCreateBody as RoleBulkCreateBody, schema_RoleBulkResult as RoleBulkResult, schema_RoleCreateBody as RoleCreateBody, schema_RoleList as RoleList, schema_RolesListQuery as RolesListQuery, schema_TokenRequest as TokenRequest, schema_TokenResponse as TokenResponse, schema_TransactionHistoryResponse as TransactionHistoryResponse, schema_UsageCheckBody as UsageCheckBody, schema_UsageConsumeBody as UsageConsumeBody, schema_UsageCreditBody as UsageCreditBody, schema_UsageGetBalanceQuery as UsageGetBalanceQuery, schema_UsageGetTransactionHistoryQuery as UsageGetTransactionHistoryQuery, schema_UsageWalletResponse as UsageWalletResponse, schema_User as User, schema_UserCreateBody as UserCreateBody, schema_UserList as UserList, schema_UserResourceList as UserResourceList, schema_UserUpdateBody as UserUpdateBody, schema_UsersListQuery as UsersListQuery };
|
|
543
|
+
export type { schema_AuthJwksGetOAuthAppJwksQuery as AuthJwksGetOAuthAppJwksQuery, schema_AuthorizeRequest as AuthorizeRequest, schema_BalanceResponse as BalanceResponse, schema_CheckLimitResponse as CheckLimitResponse, schema_ConsentCheckResponse as ConsentCheckResponse, schema_DeviceAuthorizeRequest as DeviceAuthorizeRequest, schema_DeviceAuthorizeResponse as DeviceAuthorizeResponse, schema_DeviceCodeInfoResponse as DeviceCodeInfoResponse, schema_DeviceCodeRequest as DeviceCodeRequest, schema_DeviceCodeResponse as DeviceCodeResponse, schema_DeviceTokenRequest as DeviceTokenRequest, schema_EntitlementCheckBody as EntitlementCheckBody, schema_EntitlementCheckResult as EntitlementCheckResult, schema_EntitlementsListForResourceQuery as EntitlementsListForResourceQuery, schema_EntitlementsListForTenantQuery as EntitlementsListForTenantQuery, schema_EntitlementsListResult as EntitlementsListResult, schema_Enum as Enum, schema_IntrospectionRequest as IntrospectionRequest, schema_IntrospectionResponse as IntrospectionResponse, schema_JWK as JWK, schema_OAuthAccessTokenPayload as OAuthAccessTokenPayload, schema_OauthCheckConsentRequiredQuery as OauthCheckConsentRequiredQuery, schema_PlanAssignBody as PlanAssignBody, schema_PlanDeleteResponse as PlanDeleteResponse, schema_PlanResponse as PlanResponse, schema_Resource as Resource, schema_ResourceBulkCreateBody as ResourceBulkCreateBody, schema_ResourceBulkResult as ResourceBulkResult, schema_ResourceCreateBody as ResourceCreateBody, schema_ResourceList as ResourceList, schema_ResourceMemberList as ResourceMemberList, schema_ResourceMembersListQuery as ResourceMembersListQuery, schema_ResourceUpdateBody as ResourceUpdateBody, schema_ResourcesListQuery as ResourcesListQuery, schema_RevocationRequest as RevocationRequest, schema_Role as Role, schema_RoleBulkCreateBody as RoleBulkCreateBody, schema_RoleBulkResult as RoleBulkResult, schema_RoleCreateBody as RoleCreateBody, schema_RoleList as RoleList, schema_RolesListQuery as RolesListQuery, schema_TokenRequest as TokenRequest, schema_TokenResponse as TokenResponse, schema_TransactionHistoryResponse as TransactionHistoryResponse, schema_UsageCheckBody as UsageCheckBody, schema_UsageConsumeBody as UsageConsumeBody, schema_UsageCreditBody as UsageCreditBody, schema_UsageGetBalanceQuery as UsageGetBalanceQuery, schema_UsageGetTransactionHistoryQuery as UsageGetTransactionHistoryQuery, schema_UsageWalletResponse as UsageWalletResponse, schema_User as User, schema_UserCreateBody as UserCreateBody, schema_UserList as UserList, schema_UserResourceList as UserResourceList, schema_UserUpdateBody as UserUpdateBody, schema_UsersListQuery as UsersListQuery };
|
|
534
544
|
}
|
|
535
545
|
|
|
536
|
-
export { type UserUpdateBody as $, type AuthJwksGetOAuthAppJwksQuery as A, type RolesListQuery as B, type ConsentCheckResponse as C, type DeviceAuthorizeRequest as D, type EntitlementCheckBody as E, type RoleList as F, type RoleCreateBody as G, type Role as H, type IntrospectionRequest as I, type JWK as J, type BalanceResponse as K, type UsageCheckBody as L, type CheckLimitResponse as M, type UsageConsumeBody as N, type OauthCheckConsentRequiredQuery as O, type PlanDeleteResponse as P, type UsageWalletResponse as Q, type ResourceBulkCreateBody as R, type UsageCreditBody as S, type TokenResponse as T, type UsageGetBalanceQuery as U, type UsageGetTransactionHistoryQuery as V, type TransactionHistoryResponse as W, type UsersListQuery as X, type UserList as Y, type UserCreateBody as Z, type User as _, type ResourceBulkResult as a, type UserResourceList as a0, type Enum as a1, type RoleBulkCreateBody as b, type RoleBulkResult as c, type EntitlementCheckResult as d, type EntitlementsListForResourceQuery as e, type EntitlementsListResult as f, type EntitlementsListForTenantQuery as g, type AuthorizeRequest as h, type DeviceAuthorizeResponse as i, type DeviceCodeRequest as j, type DeviceCodeResponse as k, type DeviceCodeInfoResponse as l, type DeviceTokenRequest as m, type IntrospectionResponse as n, type RevocationRequest as o, type TokenRequest as p, type PlanResponse as q, type PlanAssignBody as r, schema as s, type ResourceMembersListQuery as t, type ResourceMemberList as u, type ResourcesListQuery as v, type ResourceList as w, type ResourceCreateBody as x, type Resource as y, type ResourceUpdateBody as z };
|
|
546
|
+
export { type UserUpdateBody as $, type AuthJwksGetOAuthAppJwksQuery as A, type RolesListQuery as B, type ConsentCheckResponse as C, type DeviceAuthorizeRequest as D, type EntitlementCheckBody as E, type RoleList as F, type RoleCreateBody as G, type Role as H, type IntrospectionRequest as I, type JWK as J, type BalanceResponse as K, type UsageCheckBody as L, type CheckLimitResponse as M, type UsageConsumeBody as N, type OauthCheckConsentRequiredQuery as O, type PlanDeleteResponse as P, type UsageWalletResponse as Q, type ResourceBulkCreateBody as R, type UsageCreditBody as S, type TokenResponse as T, type UsageGetBalanceQuery as U, type UsageGetTransactionHistoryQuery as V, type TransactionHistoryResponse as W, type UsersListQuery as X, type UserList as Y, type UserCreateBody as Z, type User as _, type ResourceBulkResult as a, type UserResourceList as a0, type Enum as a1, type OAuthAccessTokenPayload as a2, type RoleBulkCreateBody as b, type RoleBulkResult as c, type EntitlementCheckResult as d, type EntitlementsListForResourceQuery as e, type EntitlementsListResult as f, type EntitlementsListForTenantQuery as g, type AuthorizeRequest as h, type DeviceAuthorizeResponse as i, type DeviceCodeRequest as j, type DeviceCodeResponse as k, type DeviceCodeInfoResponse as l, type DeviceTokenRequest as m, type IntrospectionResponse as n, type RevocationRequest as o, type TokenRequest as p, type PlanResponse as q, type PlanAssignBody as r, schema as s, type ResourceMembersListQuery as t, type ResourceMemberList as u, type ResourcesListQuery as v, type ResourceList as w, type ResourceCreateBody as x, type Resource as y, type ResourceUpdateBody as z };
|
package/dist/schema.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema.ts"],"sourcesContent":["// Generated types from OpenAPI components.schemas\n\nimport type { ResourceType, EntitlementType, PlanType, UsageLimitType } from '@blimu/types';\n\nexport type Enum<T> = T[keyof T];\n\nexport interface AuthorizeRequest {\n /** Action to take: allow or deny */\n action: 'allow' | 'deny';\n /** True if consent was auto-approved (not required or previously granted) */\n auto_approved?: boolean;\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code challenge */\n code_challenge?: string;\n /** PKCE code challenge method */\n code_challenge_method?: string;\n /** Redirect URI */\n redirect_uri: string;\n /** Response type (typically \"code\") */\n response_type: string;\n /** Space-separated list of scopes */\n scope?: string;\n /** State parameter for CSRF protection */\n state?: string;\n /** True if user explicitly clicked Allow, false if auto-approved */\n user_action?: boolean;\n}\n\nexport interface BalanceResponse {\n balance: number;\n}\n\nexport interface CheckLimitResponse {\n allowed: boolean;\n current: number;\n remaining?: number;\n requested: number;\n}\n\nexport interface ConsentCheckResponse {\n /** Whether user consent is required */\n consent_required: boolean;\n /** Whether consent was previously granted for this app and scopes */\n previously_granted: boolean;\n}\n\nexport interface DeviceAuthorizeRequest {\n /** Action to take: allow or deny */\n action: 'allow' | 'deny';\n /** True if consent was auto-approved (not required or previously granted) */\n auto_approved?: boolean;\n /** True if user explicitly clicked Allow, false if auto-approved */\n user_action?: boolean;\n /** The user code displayed to the user */\n user_code: string;\n}\n\nexport interface DeviceAuthorizeResponse {\n /** Whether the authorization was successful */\n success: boolean;\n}\n\nexport interface DeviceCodeInfoResponse {\n /** The name of the OAuth2 application */\n appName: string;\n /** Whether the user has already granted consent for this app and scopes */\n previouslyGranted: boolean;\n /** Whether the app requires user consent */\n requireConsent: boolean;\n /** The scopes requested by the device code */\n scopes: string[];\n}\n\nexport interface DeviceCodeRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code challenge (base64url encoded SHA256 hash) */\n code_challenge?: string;\n /** PKCE code challenge method */\n code_challenge_method?: 'S256' | 'plain';\n /** Space-separated list of scopes */\n scope?: string;\n}\n\nexport interface DeviceCodeResponse {\n /** Device verification code (for polling) */\n device_code: string;\n /** Device code expiration time in seconds */\n expires_in: number;\n /** Minimum polling interval in seconds */\n interval: number;\n /** User verification code (short, human-readable) */\n user_code: string;\n /** Verification URI for user */\n verification_uri: string;\n /** Complete verification URI with user code */\n verification_uri_complete: string;\n}\n\nexport interface DeviceTokenRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code verifier (if challenge was provided) */\n code_verifier?: string;\n /** Device code from authorization response */\n device_code: string;\n /** Grant type (must be device_code) */\n grant_type: 'urn:ietf:params:oauth:grant-type:device_code';\n}\n\nexport interface EntitlementCheckBody {\n amount?: number;\n entitlement: EntitlementType;\n resourceId: string;\n userId: string;\n}\n\nexport interface EntitlementCheckResult {\n allowed: boolean;\n limit?: {\n allowed: boolean;\n current?: number;\n limit?: number;\n plan?: PlanType;\n reason?: string;\n remaining?: number;\n scope?: string;\n } | null;\n plans?: { allowed: boolean; allowedPlans?: PlanType[]; plan?: PlanType; reason?: string } | null;\n roles?: {\n allowed: boolean;\n allowedRoles?: string[];\n reason?: string;\n userRoles?: string[];\n } | null;\n}\n\nexport interface EntitlementsListResult {\n results: {\n entitlements: {\n allowed: boolean;\n allowedByPlan: boolean;\n allowedByRole: boolean;\n allowedPlans?: PlanType[];\n allowedRoles: string[];\n currentPlan?: PlanType;\n currentRole?: string;\n entitlement: EntitlementType;\n }[];\n resourceId: string;\n resourceType: ResourceType;\n }[];\n}\n\nexport interface IntrospectionRequest {\n /** The token to introspect */\n token: string;\n /** Hint about token type */\n token_type_hint?: 'access_token' | 'refresh_token';\n}\n\nexport interface IntrospectionResponse {\n /** Whether the token is active */\n active: boolean;\n /** Client ID */\n client_id?: string;\n /** Environment ID */\n environment_id?: string;\n /** Token expiration timestamp */\n exp?: number;\n /** Token issued at timestamp */\n iat?: number;\n /** Space-separated list of scopes */\n scope?: string;\n /** Subject (user ID) */\n sub?: string;\n /** Token type */\n token_type?: string;\n /** Username or user ID */\n username?: string;\n}\n\nexport interface JWK {\n keys: { alg: string; e: string; kid: string; kty: string; n: string; use: string }[];\n}\n\nexport interface PlanAssignBody {\n planKey: PlanType;\n}\n\nexport interface PlanDeleteResponse {\n success: boolean;\n}\n\nexport interface PlanResponse {\n createdAt: string;\n environmentId: string;\n planKey: PlanType;\n resourceId: string;\n resourceType: ResourceType;\n updatedAt: string;\n}\n\nexport interface Resource {\n createdAt: string;\n id: string;\n name: string | null;\n parents?: { id: string; type: ResourceType }[];\n type: ResourceType;\n}\n\nexport interface ResourceBulkCreateBody {\n resources: {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n }[];\n}\n\nexport interface ResourceBulkResult {\n created: { environmentId: string; id: string; type: ResourceType }[];\n errors: {\n error: string;\n index: number;\n resource: {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface ResourceCreateBody {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n}\n\nexport interface ResourceList {\n items: Resource[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceMemberList {\n items: {\n inherited: boolean;\n role: string;\n user: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n };\n userId: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceUpdateBody {\n name?: string;\n /** Creates relationships with other resources. Parent resources must already exist. */\n parents?: { id: string; type: ResourceType }[];\n}\n\nexport interface RevocationRequest {\n /** The token to revoke */\n token: string;\n /** Hint about token type */\n token_type_hint?: 'access_token' | 'refresh_token';\n}\n\nexport interface Role {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n}\n\nexport interface RoleBulkCreateBody {\n roles: { resourceId: string; resourceType: ResourceType; role: string; userId: string }[];\n}\n\nexport interface RoleBulkResult {\n created: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n }[];\n errors: {\n error: string;\n index: number;\n role: { resourceId: string; resourceType: ResourceType; role: string; userId: string };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface RoleCreateBody {\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n}\n\nexport interface RoleList {\n limit: number;\n page: number;\n roles: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n }[];\n total: number;\n}\n\nexport interface TokenRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** OAuth2 client secret (required for confidential clients) */\n client_secret?: string;\n /** Authorization code (required for authorization_code grant) */\n code?: string;\n /** PKCE code verifier (if challenge was provided) */\n code_verifier?: string;\n /** OAuth2 grant type */\n grant_type: 'authorization_code' | 'refresh_token';\n /** Redirect URI (required for authorization_code grant) */\n redirect_uri?: string;\n /** Refresh token (required for refresh_token grant) */\n refresh_token?: string;\n /** Space-separated list of scopes (optional for refresh) */\n scope?: string;\n}\n\nexport interface TokenResponse {\n /** Access token (JWT) */\n access_token: string;\n /** Access token expiration time in seconds */\n expires_in: number;\n /** Refresh token (for obtaining new access tokens) */\n refresh_token: string;\n /** Space-separated list of granted scopes */\n scope?: string;\n /** Token type */\n token_type: string;\n}\n\nexport interface TransactionHistoryResponse {\n items: {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags: Record<string, unknown> | null;\n }[];\n}\n\nexport interface UsageCheckBody {\n amount: number;\n limitType: UsageLimitType;\n period: 'monthly' | 'yearly' | 'lifetime';\n resourceId: string;\n resourceType: ResourceType;\n}\n\nexport interface UsageConsumeBody {\n amount: number;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageCreditBody {\n amount: number;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageWalletResponse {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags: Record<string, unknown> | null;\n}\n\nexport interface User {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n}\n\nexport interface UserCreateBody {\n avatarUrl?: string;\n email: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey: string;\n newUser?: boolean | null;\n password?: string | null;\n}\n\nexport interface UserList {\n items: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport type UserResourceList = {\n inherited: boolean;\n resource: {\n id: string;\n name: string;\n parents: { id: string; type: ResourceType }[];\n type: ResourceType;\n };\n role: string;\n}[];\n\nexport interface UserUpdateBody {\n avatarUrl?: string | null;\n email?: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey?: string;\n password?: string;\n}\n\n// Operation query parameter interfaces\n\n/**\n * Query params for AuthJwks.GetOAuthAppJwks*\n * Returns the public key for a specific OAuth app to verify JWT tokens. This is a public endpoint following OAuth2/OIDC standards. Provide client_id to get keys for a specific OAuth app, or use authenticated endpoint for environment keys.*/\nexport interface AuthJwksGetOAuthAppJwksQuery {\n /** OAuth app client ID to get public keys for */\n client_id?: string;\n}\n\n/**\n * Query params for Entitlements.ListForResource*\n * Returns entitlements for a specific resource and user. Only evaluates roles and plans (excludes limits). Provides detailed information about why entitlements are allowed or denied, including current roles, allowed roles, current plan, and allowed plans. Results are cached per resource for performance.*/\nexport interface EntitlementsListForResourceQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Entitlements.ListForTenant*\n * Returns entitlements for a tenant resource and all its descendant resources. This endpoint scopes queries to a single tenant, preventing cross-tenant data access. Only evaluates roles and plans (excludes limits). Results are cached per resource for performance. The tenant resource type is automatically determined from the environment definition (resource marked as `is_tenant: true`).*/\nexport interface EntitlementsListForTenantQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Oauth.CheckConsentRequired*\n * Checks if user consent is required for the OAuth2 app and requested scopes.*/\nexport interface OauthCheckConsentRequiredQuery {\n /** OAuth2 client ID */\n client_id: string;\n /** Redirect URI */\n redirect_uri?: string;\n /** Space-separated list of scopes */\n scope?: string;\n}\n\n/**\n * Query params for Resource Members.List*\n * Retrieves a paginated list of users who have roles (direct or inherited) on the specified resource. Supports search functionality to filter users by email or name.*/\nexport interface ResourceMembersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter members by email or name */\n search?: string;\n}\n\n/**\n * Query params for Resources.List*\n * Retrieves a paginated list of resources of the specified type. Supports search and filtering. Resources are returned with their parent relationships and metadata.*/\nexport interface ResourcesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter resources by name */\n search?: string;\n}\n\n/**\n * Query params for Roles.List*\n * Retrieves a paginated list of roles assigned to a user. Supports filtering by resource type, resource ID, and role name. Returns both directly assigned roles and inherited roles.*/\nexport interface RolesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Filter roles by specific resource ID */\n resourceId?: string;\n /** Filter roles by resource type */\n resourceType?: ResourceType;\n /** Filter by role name */\n role?: string;\n}\n\n/**\n * Query params for Usage.GetBalance*\n * Retrieves the current balance of a usage wallet for a specific resource and limit type within a given time period. The balance reflects all credits and consumption transactions.*/\nexport interface UsageGetBalanceQuery {\n /** Time period for the balance calculation */\n period: 'monthly' | 'yearly' | 'lifetime';\n}\n\n/**\n * Query params for Usage.GetTransactionHistory*\n * Retrieves the transaction history for a usage wallet, including all credits and consumption records. Supports filtering by time period and date range.*/\nexport interface UsageGetTransactionHistoryQuery {\n /** End date for filtering transactions (ISO 8601 format) */\n endDate?: string;\n /** Time period for filtering transactions */\n period?: 'monthly' | 'yearly' | 'lifetime';\n /** Start date for filtering transactions (ISO 8601 format) */\n startDate?: string;\n}\n\n/**\n * Query params for Users.List*\n * Retrieves a paginated list of users in your environment. Supports search functionality to filter users by email, name, or lookup key.*/\nexport interface UsersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter users by email, name, or lookup key */\n search?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/schema.ts"],"sourcesContent":["// Generated types from OpenAPI components.schemas\n\nimport type { ResourceType, EntitlementType, PlanType, UsageLimitType } from '@blimu/types';\n\nexport type Enum<T> = T[keyof T];\n\nexport interface AuthorizeRequest {\n /** Action to take: allow or deny */\n action: 'allow' | 'deny';\n /** True if consent was auto-approved (not required or previously granted) */\n auto_approved?: boolean;\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code challenge */\n code_challenge?: string;\n /** PKCE code challenge method */\n code_challenge_method?: string;\n /** Redirect URI */\n redirect_uri: string;\n /** Response type (typically \"code\") */\n response_type: string;\n /** Space-separated list of scopes */\n scope?: string;\n /** State parameter for CSRF protection */\n state?: string;\n /** True if user explicitly clicked Allow, false if auto-approved */\n user_action?: boolean;\n}\n\nexport interface BalanceResponse {\n balance: number;\n}\n\nexport interface CheckLimitResponse {\n allowed: boolean;\n current: number;\n remaining?: number;\n requested: number;\n}\n\nexport interface ConsentCheckResponse {\n /** Whether user consent is required */\n consent_required: boolean;\n /** Whether consent was previously granted for this app and scopes */\n previously_granted: boolean;\n}\n\nexport interface DeviceAuthorizeRequest {\n /** Action to take: allow or deny */\n action: 'allow' | 'deny';\n /** True if consent was auto-approved (not required or previously granted) */\n auto_approved?: boolean;\n /** True if user explicitly clicked Allow, false if auto-approved */\n user_action?: boolean;\n /** The user code displayed to the user */\n user_code: string;\n}\n\nexport interface DeviceAuthorizeResponse {\n /** Whether the authorization was successful */\n success: boolean;\n}\n\nexport interface DeviceCodeInfoResponse {\n /** The name of the OAuth2 application */\n appName: string;\n /** Whether the user has already granted consent for this app and scopes */\n previouslyGranted: boolean;\n /** Whether the app requires user consent */\n requireConsent: boolean;\n /** The scopes requested by the device code */\n scopes: string[];\n}\n\nexport interface DeviceCodeRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code challenge (base64url encoded SHA256 hash) */\n code_challenge?: string;\n /** PKCE code challenge method */\n code_challenge_method?: 'S256' | 'plain';\n /** Space-separated list of scopes */\n scope?: string;\n}\n\nexport interface DeviceCodeResponse {\n /** Device verification code (for polling) */\n device_code: string;\n /** Device code expiration time in seconds */\n expires_in: number;\n /** Minimum polling interval in seconds */\n interval: number;\n /** User verification code (short, human-readable) */\n user_code: string;\n /** Verification URI for user */\n verification_uri: string;\n /** Complete verification URI with user code */\n verification_uri_complete: string;\n}\n\nexport interface DeviceTokenRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** PKCE code verifier (if challenge was provided) */\n code_verifier?: string;\n /** Device code from authorization response */\n device_code: string;\n /** Grant type (must be device_code) */\n grant_type: 'urn:ietf:params:oauth:grant-type:device_code';\n}\n\nexport interface EntitlementCheckBody {\n amount?: number;\n entitlement: EntitlementType;\n resourceId: string;\n userId: string;\n}\n\nexport interface EntitlementCheckResult {\n allowed: boolean;\n limit?: {\n allowed: boolean;\n current?: number;\n limit?: number;\n plan?: PlanType;\n reason?: string;\n remaining?: number;\n scope?: string;\n } | null;\n plans?: { allowed: boolean; allowedPlans?: PlanType[]; plan?: PlanType; reason?: string } | null;\n roles?: {\n allowed: boolean;\n allowedRoles?: string[];\n reason?: string;\n userRoles?: string[];\n } | null;\n}\n\nexport interface EntitlementsListResult {\n results: {\n entitlements: {\n allowed: boolean;\n allowedByPlan: boolean;\n allowedByRole: boolean;\n allowedPlans?: PlanType[];\n allowedRoles: string[];\n currentPlan?: PlanType;\n currentRole?: string;\n entitlement: EntitlementType;\n }[];\n resourceId: string;\n resourceType: ResourceType;\n }[];\n}\n\nexport interface IntrospectionRequest {\n /** The token to introspect */\n token: string;\n /** Hint about token type */\n token_type_hint?: 'access_token' | 'refresh_token';\n}\n\nexport interface IntrospectionResponse {\n /** Whether the token is active */\n active: boolean;\n /** Client ID */\n client_id?: string;\n /** Environment ID */\n environment_id?: string;\n /** Token expiration timestamp */\n exp?: number;\n /** Token issued at timestamp */\n iat?: number;\n /** Space-separated list of scopes */\n scope?: string;\n /** Subject (user ID) */\n sub?: string;\n /** Token type */\n token_type?: string;\n /** Username or user ID */\n username?: string;\n}\n\nexport interface JWK {\n keys: { alg: string; e: string; kid: string; kty: string; n: string; use: string }[];\n}\n\nexport interface OAuthAccessTokenPayload {\n client_id: string;\n environment_id: string;\n exp: number;\n iat: number;\n scope: string;\n sub: string;\n token_type: string;\n}\n\nexport interface PlanAssignBody {\n planKey: PlanType;\n}\n\nexport interface PlanDeleteResponse {\n success: boolean;\n}\n\nexport interface PlanResponse {\n createdAt: string;\n environmentId: string;\n planKey: PlanType;\n resourceId: string;\n resourceType: ResourceType;\n updatedAt: string;\n}\n\nexport interface Resource {\n createdAt: string;\n id: string;\n name: string | null;\n parents?: { id: string; type: ResourceType }[];\n type: ResourceType;\n}\n\nexport interface ResourceBulkCreateBody {\n resources: {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n }[];\n}\n\nexport interface ResourceBulkResult {\n created: { environmentId: string; id: string; type: ResourceType }[];\n errors: {\n error: string;\n index: number;\n resource: {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface ResourceCreateBody {\n id?: string;\n name?: string;\n parents?: { id: string; type: ResourceType }[];\n roles?: { role: string; userId: string }[];\n}\n\nexport interface ResourceList {\n items: Resource[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceMemberList {\n items: {\n inherited: boolean;\n role: string;\n user: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n };\n userId: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceUpdateBody {\n name?: string;\n /** Creates relationships with other resources. Parent resources must already exist. */\n parents?: { id: string; type: ResourceType }[];\n}\n\nexport interface RevocationRequest {\n /** The token to revoke */\n token: string;\n /** Hint about token type */\n token_type_hint?: 'access_token' | 'refresh_token';\n}\n\nexport interface Role {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n}\n\nexport interface RoleBulkCreateBody {\n roles: { resourceId: string; resourceType: ResourceType; role: string; userId: string }[];\n}\n\nexport interface RoleBulkResult {\n created: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n }[];\n errors: {\n error: string;\n index: number;\n role: { resourceId: string; resourceType: ResourceType; role: string; userId: string };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface RoleCreateBody {\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n}\n\nexport interface RoleList {\n limit: number;\n page: number;\n roles: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: ResourceType;\n role: string;\n userId: string;\n }[];\n total: number;\n}\n\nexport interface TokenRequest {\n /** OAuth2 client ID */\n client_id: string;\n /** OAuth2 client secret (required for confidential clients) */\n client_secret?: string;\n /** Authorization code (required for authorization_code grant) */\n code?: string;\n /** PKCE code verifier (if challenge was provided) */\n code_verifier?: string;\n /** OAuth2 grant type */\n grant_type: 'authorization_code' | 'refresh_token';\n /** Redirect URI (required for authorization_code grant) */\n redirect_uri?: string;\n /** Refresh token (required for refresh_token grant) */\n refresh_token?: string;\n /** Space-separated list of scopes (optional for refresh) */\n scope?: string;\n}\n\nexport interface TokenResponse {\n /** Access token (JWT) */\n access_token: string;\n /** Access token expiration time in seconds */\n expires_in: number;\n /** Refresh token (for obtaining new access tokens) */\n refresh_token: string;\n /** Space-separated list of granted scopes */\n scope?: string;\n /** Token type */\n token_type: string;\n}\n\nexport interface TransactionHistoryResponse {\n items: {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags: Record<string, unknown> | null;\n }[];\n}\n\nexport interface UsageCheckBody {\n amount: number;\n limitType: UsageLimitType;\n period: 'monthly' | 'yearly' | 'lifetime';\n resourceId: string;\n resourceType: ResourceType;\n}\n\nexport interface UsageConsumeBody {\n amount: number;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageCreditBody {\n amount: number;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageWalletResponse {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: UsageLimitType;\n resourceId: string;\n resourceType: ResourceType;\n tags: Record<string, unknown> | null;\n}\n\nexport interface User {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n}\n\nexport interface UserCreateBody {\n avatarUrl?: string;\n email: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey: string;\n newUser?: boolean | null;\n password?: string | null;\n}\n\nexport interface UserList {\n items: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport type UserResourceList = {\n inherited: boolean;\n resource: {\n id: string;\n name: string;\n parents: { id: string; type: ResourceType }[];\n type: ResourceType;\n };\n role: string;\n}[];\n\nexport interface UserUpdateBody {\n avatarUrl?: string | null;\n email?: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey?: string;\n password?: string;\n}\n\n// Operation query parameter interfaces\n\n/**\n * Query params for AuthJwks.GetOAuthAppJwks*\n * Returns the public key for a specific OAuth app to verify JWT tokens. This is a public endpoint following OAuth2/OIDC standards. Provide client_id to get keys for a specific OAuth app, or use authenticated endpoint for environment keys.*/\nexport interface AuthJwksGetOAuthAppJwksQuery {\n /** OAuth app client ID to get public keys for */\n client_id?: string;\n}\n\n/**\n * Query params for Entitlements.ListForResource*\n * Returns entitlements for a specific resource and user. Only evaluates roles and plans (excludes limits). Provides detailed information about why entitlements are allowed or denied, including current roles, allowed roles, current plan, and allowed plans. Results are cached per resource for performance.*/\nexport interface EntitlementsListForResourceQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Entitlements.ListForTenant*\n * Returns entitlements for a tenant resource and all its descendant resources. This endpoint scopes queries to a single tenant, preventing cross-tenant data access. Only evaluates roles and plans (excludes limits). Results are cached per resource for performance. The tenant resource type is automatically determined from the environment definition (resource marked as `is_tenant: true`).*/\nexport interface EntitlementsListForTenantQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Oauth.CheckConsentRequired*\n * Checks if user consent is required for the OAuth2 app and requested scopes.*/\nexport interface OauthCheckConsentRequiredQuery {\n /** OAuth2 client ID */\n client_id: string;\n /** Redirect URI */\n redirect_uri?: string;\n /** Space-separated list of scopes */\n scope?: string;\n}\n\n/**\n * Query params for Resource Members.List*\n * Retrieves a paginated list of users who have roles (direct or inherited) on the specified resource. Supports search functionality to filter users by email or name.*/\nexport interface ResourceMembersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter members by email or name */\n search?: string;\n}\n\n/**\n * Query params for Resources.List*\n * Retrieves a paginated list of resources of the specified type. Supports search and filtering. Resources are returned with their parent relationships and metadata.*/\nexport interface ResourcesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter resources by name */\n search?: string;\n}\n\n/**\n * Query params for Roles.List*\n * Retrieves a paginated list of roles assigned to a user. Supports filtering by resource type, resource ID, and role name. Returns both directly assigned roles and inherited roles.*/\nexport interface RolesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Filter roles by specific resource ID */\n resourceId?: string;\n /** Filter roles by resource type */\n resourceType?: ResourceType;\n /** Filter by role name */\n role?: string;\n}\n\n/**\n * Query params for Usage.GetBalance*\n * Retrieves the current balance of a usage wallet for a specific resource and limit type within a given time period. The balance reflects all credits and consumption transactions.*/\nexport interface UsageGetBalanceQuery {\n /** Time period for the balance calculation */\n period: 'monthly' | 'yearly' | 'lifetime';\n}\n\n/**\n * Query params for Usage.GetTransactionHistory*\n * Retrieves the transaction history for a usage wallet, including all credits and consumption records. Supports filtering by time period and date range.*/\nexport interface UsageGetTransactionHistoryQuery {\n /** End date for filtering transactions (ISO 8601 format) */\n endDate?: string;\n /** Time period for filtering transactions */\n period?: 'monthly' | 'yearly' | 'lifetime';\n /** Start date for filtering transactions (ISO 8601 format) */\n startDate?: string;\n}\n\n/**\n * Query params for Users.List*\n * Retrieves a paginated list of users in your environment. Supports search functionality to filter users by email, name, or lookup key.*/\nexport interface UsersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter users by email, name, or lookup key */\n search?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/schema.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@blimu/types';
|
|
2
|
-
export { A as AuthJwksGetOAuthAppJwksQuery, h as AuthorizeRequest, K as BalanceResponse, M as CheckLimitResponse, C as ConsentCheckResponse, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, l as DeviceCodeInfoResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, m as DeviceTokenRequest, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, a1 as Enum, I as IntrospectionRequest, n as IntrospectionResponse, J as JWK, O as OauthCheckConsentRequiredQuery, r as PlanAssignBody, P as PlanDeleteResponse, q as PlanResponse, y as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, x as ResourceCreateBody, w as ResourceList, u as ResourceMemberList, t as ResourceMembersListQuery, z as ResourceUpdateBody, v as ResourcesListQuery, o as RevocationRequest, H as Role, b as RoleBulkCreateBody, c as RoleBulkResult, G as RoleCreateBody, F as RoleList, B as RolesListQuery, p as TokenRequest, T as TokenResponse, W as TransactionHistoryResponse, L as UsageCheckBody, N as UsageConsumeBody, S as UsageCreditBody, U as UsageGetBalanceQuery, V as UsageGetTransactionHistoryQuery, Q as UsageWalletResponse, _ as User, Z as UserCreateBody, Y as UserList, a0 as UserResourceList, $ as UserUpdateBody, X as UsersListQuery } from './schema-
|
|
2
|
+
export { A as AuthJwksGetOAuthAppJwksQuery, h as AuthorizeRequest, K as BalanceResponse, M as CheckLimitResponse, C as ConsentCheckResponse, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, l as DeviceCodeInfoResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, m as DeviceTokenRequest, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, a1 as Enum, I as IntrospectionRequest, n as IntrospectionResponse, J as JWK, a2 as OAuthAccessTokenPayload, O as OauthCheckConsentRequiredQuery, r as PlanAssignBody, P as PlanDeleteResponse, q as PlanResponse, y as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, x as ResourceCreateBody, w as ResourceList, u as ResourceMemberList, t as ResourceMembersListQuery, z as ResourceUpdateBody, v as ResourcesListQuery, o as RevocationRequest, H as Role, b as RoleBulkCreateBody, c as RoleBulkResult, G as RoleCreateBody, F as RoleList, B as RolesListQuery, p as TokenRequest, T as TokenResponse, W as TransactionHistoryResponse, L as UsageCheckBody, N as UsageConsumeBody, S as UsageCreditBody, U as UsageGetBalanceQuery, V as UsageGetTransactionHistoryQuery, Q as UsageWalletResponse, _ as User, Z as UserCreateBody, Y as UserList, a0 as UserResourceList, $ as UserUpdateBody, X as UsersListQuery } from './schema-DlLjJUTG.mjs';
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@blimu/types';
|
|
2
|
-
export { A as AuthJwksGetOAuthAppJwksQuery, h as AuthorizeRequest, K as BalanceResponse, M as CheckLimitResponse, C as ConsentCheckResponse, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, l as DeviceCodeInfoResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, m as DeviceTokenRequest, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, a1 as Enum, I as IntrospectionRequest, n as IntrospectionResponse, J as JWK, O as OauthCheckConsentRequiredQuery, r as PlanAssignBody, P as PlanDeleteResponse, q as PlanResponse, y as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, x as ResourceCreateBody, w as ResourceList, u as ResourceMemberList, t as ResourceMembersListQuery, z as ResourceUpdateBody, v as ResourcesListQuery, o as RevocationRequest, H as Role, b as RoleBulkCreateBody, c as RoleBulkResult, G as RoleCreateBody, F as RoleList, B as RolesListQuery, p as TokenRequest, T as TokenResponse, W as TransactionHistoryResponse, L as UsageCheckBody, N as UsageConsumeBody, S as UsageCreditBody, U as UsageGetBalanceQuery, V as UsageGetTransactionHistoryQuery, Q as UsageWalletResponse, _ as User, Z as UserCreateBody, Y as UserList, a0 as UserResourceList, $ as UserUpdateBody, X as UsersListQuery } from './schema-
|
|
2
|
+
export { A as AuthJwksGetOAuthAppJwksQuery, h as AuthorizeRequest, K as BalanceResponse, M as CheckLimitResponse, C as ConsentCheckResponse, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, l as DeviceCodeInfoResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, m as DeviceTokenRequest, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, a1 as Enum, I as IntrospectionRequest, n as IntrospectionResponse, J as JWK, a2 as OAuthAccessTokenPayload, O as OauthCheckConsentRequiredQuery, r as PlanAssignBody, P as PlanDeleteResponse, q as PlanResponse, y as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, x as ResourceCreateBody, w as ResourceList, u as ResourceMemberList, t as ResourceMembersListQuery, z as ResourceUpdateBody, v as ResourcesListQuery, o as RevocationRequest, H as Role, b as RoleBulkCreateBody, c as RoleBulkResult, G as RoleCreateBody, F as RoleList, B as RolesListQuery, p as TokenRequest, T as TokenResponse, W as TransactionHistoryResponse, L as UsageCheckBody, N as UsageConsumeBody, S as UsageCreditBody, U as UsageGetBalanceQuery, V as UsageGetTransactionHistoryQuery, Q as UsageWalletResponse, _ as User, Z as UserCreateBody, Y as UserList, a0 as UserResourceList, $ as UserUpdateBody, X as UsersListQuery } from './schema-DlLjJUTG.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { J as JWK, A as AuthJwksGetOAuthAppJwksQuery } from '../schema-
|
|
2
|
+
import { J as JWK, A as AuthJwksGetOAuthAppJwksQuery } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class AuthJwksService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { J as JWK, A as AuthJwksGetOAuthAppJwksQuery } from '../schema-
|
|
2
|
+
import { J as JWK, A as AuthJwksGetOAuthAppJwksQuery } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class AuthJwksService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { R as ResourceBulkCreateBody, a as ResourceBulkResult } from '../schema-
|
|
2
|
+
import { R as ResourceBulkCreateBody, a as ResourceBulkResult } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class BulkResourcesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { R as ResourceBulkCreateBody, a as ResourceBulkResult } from '../schema-
|
|
2
|
+
import { R as ResourceBulkCreateBody, a as ResourceBulkResult } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class BulkResourcesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { b as RoleBulkCreateBody, c as RoleBulkResult } from '../schema-
|
|
2
|
+
import { b as RoleBulkCreateBody, c as RoleBulkResult } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class BulkRolesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { b as RoleBulkCreateBody, c as RoleBulkResult } from '../schema-
|
|
2
|
+
import { b as RoleBulkCreateBody, c as RoleBulkResult } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class BulkRolesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, f as EntitlementsListResult, g as EntitlementsListForTenantQuery } from '../schema-
|
|
2
|
+
import { E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, f as EntitlementsListResult, g as EntitlementsListForTenantQuery } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class EntitlementsService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, f as EntitlementsListResult, g as EntitlementsListForTenantQuery } from '../schema-
|
|
2
|
+
import { E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, f as EntitlementsListResult, g as EntitlementsListForTenantQuery } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class EntitlementsService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { O as OauthCheckConsentRequiredQuery, C as ConsentCheckResponse, h as AuthorizeRequest, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, l as DeviceCodeInfoResponse, m as DeviceTokenRequest, T as TokenResponse, I as IntrospectionRequest, n as IntrospectionResponse, o as RevocationRequest, p as TokenRequest } from '../schema-
|
|
2
|
+
import { O as OauthCheckConsentRequiredQuery, C as ConsentCheckResponse, h as AuthorizeRequest, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, l as DeviceCodeInfoResponse, m as DeviceTokenRequest, T as TokenResponse, I as IntrospectionRequest, n as IntrospectionResponse, o as RevocationRequest, p as TokenRequest } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class OauthService {
|
package/dist/services/oauth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { O as OauthCheckConsentRequiredQuery, C as ConsentCheckResponse, h as AuthorizeRequest, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, l as DeviceCodeInfoResponse, m as DeviceTokenRequest, T as TokenResponse, I as IntrospectionRequest, n as IntrospectionResponse, o as RevocationRequest, p as TokenRequest } from '../schema-
|
|
2
|
+
import { O as OauthCheckConsentRequiredQuery, C as ConsentCheckResponse, h as AuthorizeRequest, D as DeviceAuthorizeRequest, i as DeviceAuthorizeResponse, j as DeviceCodeRequest, k as DeviceCodeResponse, l as DeviceCodeInfoResponse, m as DeviceTokenRequest, T as TokenResponse, I as IntrospectionRequest, n as IntrospectionResponse, o as RevocationRequest, p as TokenRequest } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class OauthService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { P as PlanDeleteResponse, q as PlanResponse, r as PlanAssignBody } from '../schema-
|
|
2
|
+
import { P as PlanDeleteResponse, q as PlanResponse, r as PlanAssignBody } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class PlansService {
|
package/dist/services/plans.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { P as PlanDeleteResponse, q as PlanResponse, r as PlanAssignBody } from '../schema-
|
|
2
|
+
import { P as PlanDeleteResponse, q as PlanResponse, r as PlanAssignBody } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class PlansService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { t as ResourceMembersListQuery, u as ResourceMemberList } from '../schema-
|
|
2
|
+
import { t as ResourceMembersListQuery, u as ResourceMemberList } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class ResourceMembersService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { t as ResourceMembersListQuery, u as ResourceMemberList } from '../schema-
|
|
2
|
+
import { t as ResourceMembersListQuery, u as ResourceMemberList } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class ResourceMembersService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { v as ResourcesListQuery, w as ResourceList, x as ResourceCreateBody, y as Resource, z as ResourceUpdateBody } from '../schema-
|
|
2
|
+
import { v as ResourcesListQuery, w as ResourceList, x as ResourceCreateBody, y as Resource, z as ResourceUpdateBody } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class ResourcesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { v as ResourcesListQuery, w as ResourceList, x as ResourceCreateBody, y as Resource, z as ResourceUpdateBody } from '../schema-
|
|
2
|
+
import { v as ResourcesListQuery, w as ResourceList, x as ResourceCreateBody, y as Resource, z as ResourceUpdateBody } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class ResourcesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { B as RolesListQuery, F as RoleList, G as RoleCreateBody, H as Role } from '../schema-
|
|
2
|
+
import { B as RolesListQuery, F as RoleList, G as RoleCreateBody, H as Role } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class RolesService {
|
package/dist/services/roles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { B as RolesListQuery, F as RoleList, G as RoleCreateBody, H as Role } from '../schema-
|
|
2
|
+
import { B as RolesListQuery, F as RoleList, G as RoleCreateBody, H as Role } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import { ResourceType } from '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class RolesService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { U as UsageGetBalanceQuery, K as BalanceResponse, L as UsageCheckBody, M as CheckLimitResponse, N as UsageConsumeBody, Q as UsageWalletResponse, S as UsageCreditBody, V as UsageGetTransactionHistoryQuery, W as TransactionHistoryResponse } from '../schema-
|
|
2
|
+
import { U as UsageGetBalanceQuery, K as BalanceResponse, L as UsageCheckBody, M as CheckLimitResponse, N as UsageConsumeBody, Q as UsageWalletResponse, S as UsageCreditBody, V as UsageGetTransactionHistoryQuery, W as TransactionHistoryResponse } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class UsageService {
|
package/dist/services/usage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { U as UsageGetBalanceQuery, K as BalanceResponse, L as UsageCheckBody, M as CheckLimitResponse, N as UsageConsumeBody, Q as UsageWalletResponse, S as UsageCreditBody, V as UsageGetTransactionHistoryQuery, W as TransactionHistoryResponse } from '../schema-
|
|
2
|
+
import { U as UsageGetBalanceQuery, K as BalanceResponse, L as UsageCheckBody, M as CheckLimitResponse, N as UsageConsumeBody, Q as UsageWalletResponse, S as UsageCreditBody, V as UsageGetTransactionHistoryQuery, W as TransactionHistoryResponse } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class UsageService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { X as UsersListQuery, Y as UserList, Z as UserCreateBody, _ as User, $ as UserUpdateBody, a0 as UserResourceList } from '../schema-
|
|
2
|
+
import { X as UsersListQuery, Y as UserList, Z as UserCreateBody, _ as User, $ as UserUpdateBody, a0 as UserResourceList } from '../schema-DlLjJUTG.mjs';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class UsersService {
|
package/dist/services/users.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchClient } from '@blimu/fetch';
|
|
2
|
-
import { X as UsersListQuery, Y as UserList, Z as UserCreateBody, _ as User, $ as UserUpdateBody, a0 as UserResourceList } from '../schema-
|
|
2
|
+
import { X as UsersListQuery, Y as UserList, Z as UserCreateBody, _ as User, $ as UserUpdateBody, a0 as UserResourceList } from '../schema-DlLjJUTG.js';
|
|
3
3
|
import '@blimu/types';
|
|
4
4
|
|
|
5
5
|
declare class UsersService {
|