@raystack/frontier 0.8.38 → 0.8.39
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/dist/index.d.ts +53 -5
- package/dist/index.js +38 -3
- package/dist/index.mjs +38 -3
- package/package.json +1 -1
- package/react/dist/index.d.ts +50 -3
- package/react/dist/index.js +117 -85
- package/react/dist/index.mjs +119 -87
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ interface ProtobufAny {
|
|
|
101
101
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
102
102
|
* `Value` type union.
|
|
103
103
|
*
|
|
104
|
-
*
|
|
104
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
105
105
|
*
|
|
106
106
|
* - NULL_VALUE: Null value.
|
|
107
107
|
* @default "NULL_VALUE"
|
|
@@ -1411,6 +1411,24 @@ interface V1Beta1ResourceRequestBody {
|
|
|
1411
1411
|
principal?: string;
|
|
1412
1412
|
metadata?: object;
|
|
1413
1413
|
}
|
|
1414
|
+
interface V1Beta1RevertBillingUsageRequest {
|
|
1415
|
+
/** either provide org_id or infer org from project_id */
|
|
1416
|
+
org_id?: string;
|
|
1417
|
+
project_id?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* either provide billing_id of the org or API can infer the default
|
|
1420
|
+
* billing ID from either org_id or project_id, not both
|
|
1421
|
+
*/
|
|
1422
|
+
billing_id?: string;
|
|
1423
|
+
/** usage id to revert, a usage can only be allowed to revert once */
|
|
1424
|
+
usage_id?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* amount should be equal or less than the usage amount
|
|
1427
|
+
* @format int64
|
|
1428
|
+
*/
|
|
1429
|
+
amount?: string;
|
|
1430
|
+
}
|
|
1431
|
+
type V1Beta1RevertBillingUsageResponse = object;
|
|
1414
1432
|
interface V1Beta1Role {
|
|
1415
1433
|
id?: string;
|
|
1416
1434
|
name?: string;
|
|
@@ -1733,6 +1751,23 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1733
1751
|
/** Product to buy */
|
|
1734
1752
|
product_body?: V1Beta1CheckoutProductBody;
|
|
1735
1753
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1DelegatedCheckoutResponse, RpcStatus>>;
|
|
1754
|
+
/**
|
|
1755
|
+
* @description Revert billing usage for a billing account.
|
|
1756
|
+
*
|
|
1757
|
+
* @tags Billing
|
|
1758
|
+
* @name AdminServiceRevertBillingUsage
|
|
1759
|
+
* @summary Revert billing usage
|
|
1760
|
+
* @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
|
|
1761
|
+
* @secure
|
|
1762
|
+
*/
|
|
1763
|
+
adminServiceRevertBillingUsage: (orgId: string, billingId: string, usageId: string, body: {
|
|
1764
|
+
project_id?: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* amount should be equal or less than the usage amount
|
|
1767
|
+
* @format int64
|
|
1768
|
+
*/
|
|
1769
|
+
amount?: string;
|
|
1770
|
+
}, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1736
1771
|
/**
|
|
1737
1772
|
* @description Lists all the users added to the platform.
|
|
1738
1773
|
*
|
|
@@ -2525,7 +2560,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2525
2560
|
* @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
|
|
2526
2561
|
* @secure
|
|
2527
2562
|
*/
|
|
2528
|
-
frontierServiceListInvoices: (orgId: string, billingId: string,
|
|
2563
|
+
frontierServiceListInvoices: (orgId: string, billingId: string, query?: {
|
|
2564
|
+
nonzero_amount_only?: boolean;
|
|
2565
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
|
|
2529
2566
|
/**
|
|
2530
2567
|
* @description Get the upcoming invoice of a billing account.
|
|
2531
2568
|
*
|
|
@@ -2705,6 +2742,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2705
2742
|
frontierServiceListInvoices2: (orgId: string, query?: {
|
|
2706
2743
|
/** ID of the billing account to list invoices for */
|
|
2707
2744
|
billing_id?: string;
|
|
2745
|
+
nonzero_amount_only?: boolean;
|
|
2708
2746
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
|
|
2709
2747
|
/**
|
|
2710
2748
|
* @description Get the upcoming invoice of a billing account.
|
|
@@ -3030,6 +3068,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3030
3068
|
* @secure
|
|
3031
3069
|
*/
|
|
3032
3070
|
frontierServiceCreateBillingUsage2: (body: V1Beta1CreateBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3071
|
+
/**
|
|
3072
|
+
* @description Revert billing usage for a billing account.
|
|
3073
|
+
*
|
|
3074
|
+
* @tags Billing
|
|
3075
|
+
* @name AdminServiceRevertBillingUsage2
|
|
3076
|
+
* @summary Revert billing usage
|
|
3077
|
+
* @request POST:/v1beta1/organizations/billing/usages/revert
|
|
3078
|
+
* @secure
|
|
3079
|
+
*/
|
|
3080
|
+
adminServiceRevertBillingUsage2: (body: V1Beta1RevertBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3033
3081
|
/**
|
|
3034
3082
|
* No description
|
|
3035
3083
|
*
|
|
@@ -3490,7 +3538,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3490
3538
|
*
|
|
3491
3539
|
* @tags ServiceUser
|
|
3492
3540
|
* @name FrontierServiceCreateServiceUserKey
|
|
3493
|
-
* @summary Create service user key
|
|
3541
|
+
* @summary Create service user public/private key pair
|
|
3494
3542
|
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
3495
3543
|
* @secure
|
|
3496
3544
|
*/
|
|
@@ -3532,7 +3580,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3532
3580
|
*
|
|
3533
3581
|
* @tags ServiceUser
|
|
3534
3582
|
* @name FrontierServiceCreateServiceUserSecret
|
|
3535
|
-
* @summary Create service user secret
|
|
3583
|
+
* @summary Create service user client/secret
|
|
3536
3584
|
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
3537
3585
|
* @secure
|
|
3538
3586
|
*/
|
|
@@ -3812,4 +3860,4 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3812
3860
|
|
|
3813
3861
|
declare const FrontierClient: typeof V1Beta1;
|
|
3814
3862
|
|
|
3815
|
-
export { BillingAccountAddress, BillingAccountBalance, ChangeSubscriptionRequestPhaseChange, ChangeSubscriptionRequestPlanChange, FrontierClient, ProductBehaviorConfig, ProtobufAny, ProtobufNullValue, RpcStatus, SubscriptionPhase, V1Beta1, V1Beta1AcceptOrganizationInvitationResponse, V1Beta1AddGroupUsersResponse, V1Beta1AddOrganizationUsersResponse, V1Beta1AddPlatformUserRequest, V1Beta1AddPlatformUserResponse, V1Beta1AuditLog, V1Beta1AuditLogActor, V1Beta1AuditLogTarget, V1Beta1AuthCallbackRequest, V1Beta1AuthCallbackResponse, V1Beta1AuthLogoutResponse, V1Beta1AuthStrategy, V1Beta1AuthTokenRequest, V1Beta1AuthTokenResponse, V1Beta1AuthenticateResponse, V1Beta1BatchCheckPermissionBody, V1Beta1BatchCheckPermissionRequest, V1Beta1BatchCheckPermissionResponse, V1Beta1BatchCheckPermissionResponsePair, V1Beta1BillingAccount, V1Beta1BillingAccountRequestBody, V1Beta1BillingTransaction, V1Beta1CancelSubscriptionResponse, V1Beta1ChangeSubscriptionResponse, V1Beta1CheckFeatureEntitlementRequest, V1Beta1CheckFeatureEntitlementResponse, V1Beta1CheckFederatedResourcePermissionRequest, V1Beta1CheckFederatedResourcePermissionResponse, V1Beta1CheckResourcePermissionRequest, V1Beta1CheckResourcePermissionResponse, V1Beta1CheckoutProductBody, V1Beta1CheckoutSession, V1Beta1CheckoutSetupBody, V1Beta1CheckoutSubscriptionBody, V1Beta1CreateBillingAccountResponse, V1Beta1CreateBillingUsageRequest, V1Beta1CreateBillingUsageResponse, V1Beta1CreateCheckoutResponse, V1Beta1CreateCurrentUserPreferencesRequest, V1Beta1CreateCurrentUserPreferencesResponse, V1Beta1CreateFeatureRequest, V1Beta1CreateFeatureResponse, V1Beta1CreateGroupPreferencesResponse, V1Beta1CreateGroupResponse, V1Beta1CreateMetaSchemaResponse, V1Beta1CreateOrganizationAuditLogsResponse, V1Beta1CreateOrganizationDomainResponse, V1Beta1CreateOrganizationInvitationResponse, V1Beta1CreateOrganizationPreferencesResponse, V1Beta1CreateOrganizationResponse, V1Beta1CreateOrganizationRoleResponse, V1Beta1CreatePermissionRequest, V1Beta1CreatePermissionResponse, V1Beta1CreatePlanRequest, V1Beta1CreatePlanResponse, V1Beta1CreatePolicyResponse, V1Beta1CreatePreferencesRequest, V1Beta1CreatePreferencesResponse, V1Beta1CreateProductRequest, V1Beta1CreateProductResponse, V1Beta1CreateProjectPreferencesResponse, V1Beta1CreateProjectResourceResponse, V1Beta1CreateProjectResponse, V1Beta1CreateRelationResponse, V1Beta1CreateRoleResponse, V1Beta1CreateServiceUserKeyResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserSecretResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1DelegatedCheckoutResponse, V1Beta1DeleteBillingAccountResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserKeyResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserSecretResponse, V1Beta1DeleteUserResponse, V1Beta1DescribePreferencesResponse, V1Beta1DisableGroupResponse, V1Beta1DisableOrganizationResponse, V1Beta1DisableProjectResponse, V1Beta1DisableUserResponse, V1Beta1Domain, V1Beta1EnableGroupResponse, V1Beta1EnableOrganizationResponse, V1Beta1EnableProjectResponse, V1Beta1EnableUserResponse, V1Beta1Feature, V1Beta1FeatureRequestBody, V1Beta1GetBillingAccountResponse, V1Beta1GetBillingBalanceResponse, V1Beta1GetCurrentUserResponse, V1Beta1GetFeatureResponse, V1Beta1GetGroupResponse, V1Beta1GetJWKsResponse, V1Beta1GetMetaSchemaResponse, V1Beta1GetNamespaceResponse, V1Beta1GetOrganizationAuditLogResponse, V1Beta1GetOrganizationDomainResponse, V1Beta1GetOrganizationInvitationResponse, V1Beta1GetOrganizationResponse, V1Beta1GetOrganizationRoleResponse, V1Beta1GetPermissionResponse, V1Beta1GetPlanResponse, V1Beta1GetPolicyResponse, V1Beta1GetProductResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserKeyResponse, V1Beta1GetServiceUserResponse, V1Beta1GetSubscriptionResponse, V1Beta1GetUpcomingInvoiceResponse, V1Beta1GetUserResponse, V1Beta1Group, V1Beta1GroupRequestBody, V1Beta1HasTrialedResponse, V1Beta1Invitation, V1Beta1Invoice, V1Beta1JSONWebKey, V1Beta1JoinOrganizationResponse, V1Beta1KeyCredential, V1Beta1ListAllBillingAccountsResponse, V1Beta1ListAllInvoicesResponse, V1Beta1ListAllOrganizationsResponse, V1Beta1ListAllUsersResponse, V1Beta1ListAuthStrategiesResponse, V1Beta1ListBillingAccountsResponse, V1Beta1ListBillingTransactionsResponse, V1Beta1ListCheckoutsResponse, V1Beta1ListCurrentUserGroupsResponse, V1Beta1ListCurrentUserGroupsResponseAccessPair, V1Beta1ListCurrentUserInvitationsResponse, V1Beta1ListCurrentUserPreferencesResponse, V1Beta1ListFeaturesResponse, V1Beta1ListGroupPreferencesResponse, V1Beta1ListGroupUsersResponse, V1Beta1ListGroupUsersResponseRolePair, V1Beta1ListGroupsResponse, V1Beta1ListInvoicesResponse, V1Beta1ListMetaSchemasResponse, V1Beta1ListNamespacesResponse, V1Beta1ListOrganizationAdminsResponse, V1Beta1ListOrganizationAuditLogsResponse, V1Beta1ListOrganizationDomainsResponse, V1Beta1ListOrganizationGroupsResponse, V1Beta1ListOrganizationInvitationsResponse, V1Beta1ListOrganizationPreferencesResponse, V1Beta1ListOrganizationProjectsResponse, V1Beta1ListOrganizationRolesResponse, V1Beta1ListOrganizationServiceUsersResponse, V1Beta1ListOrganizationUsersResponse, V1Beta1ListOrganizationUsersResponseRolePair, V1Beta1ListOrganizationsByCurrentUserResponse, V1Beta1ListOrganizationsByUserResponse, V1Beta1ListOrganizationsResponse, V1Beta1ListPermissionsResponse, V1Beta1ListPlansResponse, V1Beta1ListPlatformUsersResponse, V1Beta1ListPoliciesResponse, V1Beta1ListPreferencesResponse, V1Beta1ListProductsResponse, V1Beta1ListProjectAdminsResponse, V1Beta1ListProjectGroupsResponse, V1Beta1ListProjectGroupsResponseRolePair, V1Beta1ListProjectPreferencesResponse, V1Beta1ListProjectResourcesResponse, V1Beta1ListProjectServiceUsersResponse, V1Beta1ListProjectServiceUsersResponseRolePair, V1Beta1ListProjectUsersResponse, V1Beta1ListProjectUsersResponseRolePair, V1Beta1ListProjectsByCurrentUserResponse, V1Beta1ListProjectsByCurrentUserResponseAccessPair, V1Beta1ListProjectsByUserResponse, V1Beta1ListProjectsResponse, V1Beta1ListRelationsResponse, V1Beta1ListResourcesResponse, V1Beta1ListRolesResponse, V1Beta1ListServiceUserKeysResponse, V1Beta1ListServiceUserSecretsResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListSubscriptionsResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1PaymentMethod, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Plan, V1Beta1PlanRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Price, V1Beta1Product, V1Beta1ProductRequestBody, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserKey, V1Beta1ServiceUserRequestBody, V1Beta1Subscription, V1Beta1UpdateBillingAccountResponse, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateFeatureResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePlanResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProductResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateSubscriptionResponse, V1Beta1UpdateUserResponse, V1Beta1Usage, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse };
|
|
3863
|
+
export { BillingAccountAddress, BillingAccountBalance, ChangeSubscriptionRequestPhaseChange, ChangeSubscriptionRequestPlanChange, FrontierClient, ProductBehaviorConfig, ProtobufAny, ProtobufNullValue, RpcStatus, SubscriptionPhase, V1Beta1, V1Beta1AcceptOrganizationInvitationResponse, V1Beta1AddGroupUsersResponse, V1Beta1AddOrganizationUsersResponse, V1Beta1AddPlatformUserRequest, V1Beta1AddPlatformUserResponse, V1Beta1AuditLog, V1Beta1AuditLogActor, V1Beta1AuditLogTarget, V1Beta1AuthCallbackRequest, V1Beta1AuthCallbackResponse, V1Beta1AuthLogoutResponse, V1Beta1AuthStrategy, V1Beta1AuthTokenRequest, V1Beta1AuthTokenResponse, V1Beta1AuthenticateResponse, V1Beta1BatchCheckPermissionBody, V1Beta1BatchCheckPermissionRequest, V1Beta1BatchCheckPermissionResponse, V1Beta1BatchCheckPermissionResponsePair, V1Beta1BillingAccount, V1Beta1BillingAccountRequestBody, V1Beta1BillingTransaction, V1Beta1CancelSubscriptionResponse, V1Beta1ChangeSubscriptionResponse, V1Beta1CheckFeatureEntitlementRequest, V1Beta1CheckFeatureEntitlementResponse, V1Beta1CheckFederatedResourcePermissionRequest, V1Beta1CheckFederatedResourcePermissionResponse, V1Beta1CheckResourcePermissionRequest, V1Beta1CheckResourcePermissionResponse, V1Beta1CheckoutProductBody, V1Beta1CheckoutSession, V1Beta1CheckoutSetupBody, V1Beta1CheckoutSubscriptionBody, V1Beta1CreateBillingAccountResponse, V1Beta1CreateBillingUsageRequest, V1Beta1CreateBillingUsageResponse, V1Beta1CreateCheckoutResponse, V1Beta1CreateCurrentUserPreferencesRequest, V1Beta1CreateCurrentUserPreferencesResponse, V1Beta1CreateFeatureRequest, V1Beta1CreateFeatureResponse, V1Beta1CreateGroupPreferencesResponse, V1Beta1CreateGroupResponse, V1Beta1CreateMetaSchemaResponse, V1Beta1CreateOrganizationAuditLogsResponse, V1Beta1CreateOrganizationDomainResponse, V1Beta1CreateOrganizationInvitationResponse, V1Beta1CreateOrganizationPreferencesResponse, V1Beta1CreateOrganizationResponse, V1Beta1CreateOrganizationRoleResponse, V1Beta1CreatePermissionRequest, V1Beta1CreatePermissionResponse, V1Beta1CreatePlanRequest, V1Beta1CreatePlanResponse, V1Beta1CreatePolicyResponse, V1Beta1CreatePreferencesRequest, V1Beta1CreatePreferencesResponse, V1Beta1CreateProductRequest, V1Beta1CreateProductResponse, V1Beta1CreateProjectPreferencesResponse, V1Beta1CreateProjectResourceResponse, V1Beta1CreateProjectResponse, V1Beta1CreateRelationResponse, V1Beta1CreateRoleResponse, V1Beta1CreateServiceUserKeyResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserSecretResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1DelegatedCheckoutResponse, V1Beta1DeleteBillingAccountResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserKeyResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserSecretResponse, V1Beta1DeleteUserResponse, V1Beta1DescribePreferencesResponse, V1Beta1DisableGroupResponse, V1Beta1DisableOrganizationResponse, V1Beta1DisableProjectResponse, V1Beta1DisableUserResponse, V1Beta1Domain, V1Beta1EnableGroupResponse, V1Beta1EnableOrganizationResponse, V1Beta1EnableProjectResponse, V1Beta1EnableUserResponse, V1Beta1Feature, V1Beta1FeatureRequestBody, V1Beta1GetBillingAccountResponse, V1Beta1GetBillingBalanceResponse, V1Beta1GetCurrentUserResponse, V1Beta1GetFeatureResponse, V1Beta1GetGroupResponse, V1Beta1GetJWKsResponse, V1Beta1GetMetaSchemaResponse, V1Beta1GetNamespaceResponse, V1Beta1GetOrganizationAuditLogResponse, V1Beta1GetOrganizationDomainResponse, V1Beta1GetOrganizationInvitationResponse, V1Beta1GetOrganizationResponse, V1Beta1GetOrganizationRoleResponse, V1Beta1GetPermissionResponse, V1Beta1GetPlanResponse, V1Beta1GetPolicyResponse, V1Beta1GetProductResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserKeyResponse, V1Beta1GetServiceUserResponse, V1Beta1GetSubscriptionResponse, V1Beta1GetUpcomingInvoiceResponse, V1Beta1GetUserResponse, V1Beta1Group, V1Beta1GroupRequestBody, V1Beta1HasTrialedResponse, V1Beta1Invitation, V1Beta1Invoice, V1Beta1JSONWebKey, V1Beta1JoinOrganizationResponse, V1Beta1KeyCredential, V1Beta1ListAllBillingAccountsResponse, V1Beta1ListAllInvoicesResponse, V1Beta1ListAllOrganizationsResponse, V1Beta1ListAllUsersResponse, V1Beta1ListAuthStrategiesResponse, V1Beta1ListBillingAccountsResponse, V1Beta1ListBillingTransactionsResponse, V1Beta1ListCheckoutsResponse, V1Beta1ListCurrentUserGroupsResponse, V1Beta1ListCurrentUserGroupsResponseAccessPair, V1Beta1ListCurrentUserInvitationsResponse, V1Beta1ListCurrentUserPreferencesResponse, V1Beta1ListFeaturesResponse, V1Beta1ListGroupPreferencesResponse, V1Beta1ListGroupUsersResponse, V1Beta1ListGroupUsersResponseRolePair, V1Beta1ListGroupsResponse, V1Beta1ListInvoicesResponse, V1Beta1ListMetaSchemasResponse, V1Beta1ListNamespacesResponse, V1Beta1ListOrganizationAdminsResponse, V1Beta1ListOrganizationAuditLogsResponse, V1Beta1ListOrganizationDomainsResponse, V1Beta1ListOrganizationGroupsResponse, V1Beta1ListOrganizationInvitationsResponse, V1Beta1ListOrganizationPreferencesResponse, V1Beta1ListOrganizationProjectsResponse, V1Beta1ListOrganizationRolesResponse, V1Beta1ListOrganizationServiceUsersResponse, V1Beta1ListOrganizationUsersResponse, V1Beta1ListOrganizationUsersResponseRolePair, V1Beta1ListOrganizationsByCurrentUserResponse, V1Beta1ListOrganizationsByUserResponse, V1Beta1ListOrganizationsResponse, V1Beta1ListPermissionsResponse, V1Beta1ListPlansResponse, V1Beta1ListPlatformUsersResponse, V1Beta1ListPoliciesResponse, V1Beta1ListPreferencesResponse, V1Beta1ListProductsResponse, V1Beta1ListProjectAdminsResponse, V1Beta1ListProjectGroupsResponse, V1Beta1ListProjectGroupsResponseRolePair, V1Beta1ListProjectPreferencesResponse, V1Beta1ListProjectResourcesResponse, V1Beta1ListProjectServiceUsersResponse, V1Beta1ListProjectServiceUsersResponseRolePair, V1Beta1ListProjectUsersResponse, V1Beta1ListProjectUsersResponseRolePair, V1Beta1ListProjectsByCurrentUserResponse, V1Beta1ListProjectsByCurrentUserResponseAccessPair, V1Beta1ListProjectsByUserResponse, V1Beta1ListProjectsResponse, V1Beta1ListRelationsResponse, V1Beta1ListResourcesResponse, V1Beta1ListRolesResponse, V1Beta1ListServiceUserKeysResponse, V1Beta1ListServiceUserSecretsResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListSubscriptionsResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1PaymentMethod, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Plan, V1Beta1PlanRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Price, V1Beta1Product, V1Beta1ProductRequestBody, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1RevertBillingUsageRequest, V1Beta1RevertBillingUsageResponse, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserKey, V1Beta1ServiceUserRequestBody, V1Beta1Subscription, V1Beta1UpdateBillingAccountResponse, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateFeatureResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePlanResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProductResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateSubscriptionResponse, V1Beta1UpdateUserResponse, V1Beta1Usage, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse };
|
package/dist/index.js
CHANGED
|
@@ -306,6 +306,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
306
306
|
type: "application/json" /* Json */,
|
|
307
307
|
format: "json"
|
|
308
308
|
}, params));
|
|
309
|
+
/**
|
|
310
|
+
* @description Revert billing usage for a billing account.
|
|
311
|
+
*
|
|
312
|
+
* @tags Billing
|
|
313
|
+
* @name AdminServiceRevertBillingUsage
|
|
314
|
+
* @summary Revert billing usage
|
|
315
|
+
* @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
|
|
316
|
+
* @secure
|
|
317
|
+
*/
|
|
318
|
+
this.adminServiceRevertBillingUsage = (orgId, billingId, usageId, body, params = {}) => this.request(__spreadValues({
|
|
319
|
+
path: `/v1beta1/admin/organizations/${orgId}/billing/${billingId}/usage/${usageId}/revert`,
|
|
320
|
+
method: "POST",
|
|
321
|
+
body,
|
|
322
|
+
secure: true,
|
|
323
|
+
type: "application/json" /* Json */,
|
|
324
|
+
format: "json"
|
|
325
|
+
}, params));
|
|
309
326
|
/**
|
|
310
327
|
* @description Lists all the users added to the platform.
|
|
311
328
|
*
|
|
@@ -1282,9 +1299,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1282
1299
|
* @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
|
|
1283
1300
|
* @secure
|
|
1284
1301
|
*/
|
|
1285
|
-
this.frontierServiceListInvoices = (orgId, billingId, params = {}) => this.request(__spreadValues({
|
|
1302
|
+
this.frontierServiceListInvoices = (orgId, billingId, query, params = {}) => this.request(__spreadValues({
|
|
1286
1303
|
path: `/v1beta1/organizations/${orgId}/billing/${billingId}/invoices`,
|
|
1287
1304
|
method: "GET",
|
|
1305
|
+
query,
|
|
1288
1306
|
secure: true,
|
|
1289
1307
|
format: "json"
|
|
1290
1308
|
}, params));
|
|
@@ -1973,6 +1991,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1973
1991
|
type: "application/json" /* Json */,
|
|
1974
1992
|
format: "json"
|
|
1975
1993
|
}, params));
|
|
1994
|
+
/**
|
|
1995
|
+
* @description Revert billing usage for a billing account.
|
|
1996
|
+
*
|
|
1997
|
+
* @tags Billing
|
|
1998
|
+
* @name AdminServiceRevertBillingUsage2
|
|
1999
|
+
* @summary Revert billing usage
|
|
2000
|
+
* @request POST:/v1beta1/organizations/billing/usages/revert
|
|
2001
|
+
* @secure
|
|
2002
|
+
*/
|
|
2003
|
+
this.adminServiceRevertBillingUsage2 = (body, params = {}) => this.request(__spreadValues({
|
|
2004
|
+
path: `/v1beta1/organizations/billing/usages/revert`,
|
|
2005
|
+
method: "POST",
|
|
2006
|
+
body,
|
|
2007
|
+
secure: true,
|
|
2008
|
+
type: "application/json" /* Json */,
|
|
2009
|
+
format: "json"
|
|
2010
|
+
}, params));
|
|
1976
2011
|
/**
|
|
1977
2012
|
* No description
|
|
1978
2013
|
*
|
|
@@ -2638,7 +2673,7 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2638
2673
|
*
|
|
2639
2674
|
* @tags ServiceUser
|
|
2640
2675
|
* @name FrontierServiceCreateServiceUserKey
|
|
2641
|
-
* @summary Create service user key
|
|
2676
|
+
* @summary Create service user public/private key pair
|
|
2642
2677
|
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
2643
2678
|
* @secure
|
|
2644
2679
|
*/
|
|
@@ -2699,7 +2734,7 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2699
2734
|
*
|
|
2700
2735
|
* @tags ServiceUser
|
|
2701
2736
|
* @name FrontierServiceCreateServiceUserSecret
|
|
2702
|
-
* @summary Create service user secret
|
|
2737
|
+
* @summary Create service user client/secret
|
|
2703
2738
|
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
2704
2739
|
* @secure
|
|
2705
2740
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -281,6 +281,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
281
281
|
type: "application/json" /* Json */,
|
|
282
282
|
format: "json"
|
|
283
283
|
}, params));
|
|
284
|
+
/**
|
|
285
|
+
* @description Revert billing usage for a billing account.
|
|
286
|
+
*
|
|
287
|
+
* @tags Billing
|
|
288
|
+
* @name AdminServiceRevertBillingUsage
|
|
289
|
+
* @summary Revert billing usage
|
|
290
|
+
* @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
|
|
291
|
+
* @secure
|
|
292
|
+
*/
|
|
293
|
+
this.adminServiceRevertBillingUsage = (orgId, billingId, usageId, body, params = {}) => this.request(__spreadValues({
|
|
294
|
+
path: `/v1beta1/admin/organizations/${orgId}/billing/${billingId}/usage/${usageId}/revert`,
|
|
295
|
+
method: "POST",
|
|
296
|
+
body,
|
|
297
|
+
secure: true,
|
|
298
|
+
type: "application/json" /* Json */,
|
|
299
|
+
format: "json"
|
|
300
|
+
}, params));
|
|
284
301
|
/**
|
|
285
302
|
* @description Lists all the users added to the platform.
|
|
286
303
|
*
|
|
@@ -1257,9 +1274,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1257
1274
|
* @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
|
|
1258
1275
|
* @secure
|
|
1259
1276
|
*/
|
|
1260
|
-
this.frontierServiceListInvoices = (orgId, billingId, params = {}) => this.request(__spreadValues({
|
|
1277
|
+
this.frontierServiceListInvoices = (orgId, billingId, query, params = {}) => this.request(__spreadValues({
|
|
1261
1278
|
path: `/v1beta1/organizations/${orgId}/billing/${billingId}/invoices`,
|
|
1262
1279
|
method: "GET",
|
|
1280
|
+
query,
|
|
1263
1281
|
secure: true,
|
|
1264
1282
|
format: "json"
|
|
1265
1283
|
}, params));
|
|
@@ -1948,6 +1966,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1948
1966
|
type: "application/json" /* Json */,
|
|
1949
1967
|
format: "json"
|
|
1950
1968
|
}, params));
|
|
1969
|
+
/**
|
|
1970
|
+
* @description Revert billing usage for a billing account.
|
|
1971
|
+
*
|
|
1972
|
+
* @tags Billing
|
|
1973
|
+
* @name AdminServiceRevertBillingUsage2
|
|
1974
|
+
* @summary Revert billing usage
|
|
1975
|
+
* @request POST:/v1beta1/organizations/billing/usages/revert
|
|
1976
|
+
* @secure
|
|
1977
|
+
*/
|
|
1978
|
+
this.adminServiceRevertBillingUsage2 = (body, params = {}) => this.request(__spreadValues({
|
|
1979
|
+
path: `/v1beta1/organizations/billing/usages/revert`,
|
|
1980
|
+
method: "POST",
|
|
1981
|
+
body,
|
|
1982
|
+
secure: true,
|
|
1983
|
+
type: "application/json" /* Json */,
|
|
1984
|
+
format: "json"
|
|
1985
|
+
}, params));
|
|
1951
1986
|
/**
|
|
1952
1987
|
* No description
|
|
1953
1988
|
*
|
|
@@ -2613,7 +2648,7 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2613
2648
|
*
|
|
2614
2649
|
* @tags ServiceUser
|
|
2615
2650
|
* @name FrontierServiceCreateServiceUserKey
|
|
2616
|
-
* @summary Create service user key
|
|
2651
|
+
* @summary Create service user public/private key pair
|
|
2617
2652
|
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
2618
2653
|
* @secure
|
|
2619
2654
|
*/
|
|
@@ -2674,7 +2709,7 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2674
2709
|
*
|
|
2675
2710
|
* @tags ServiceUser
|
|
2676
2711
|
* @name FrontierServiceCreateServiceUserSecret
|
|
2677
|
-
* @summary Create service user secret
|
|
2712
|
+
* @summary Create service user client/secret
|
|
2678
2713
|
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
2679
2714
|
* @secure
|
|
2680
2715
|
*/
|
package/package.json
CHANGED
package/react/dist/index.d.ts
CHANGED
|
@@ -1662,6 +1662,23 @@ interface V1Beta1ResourceRequestBody {
|
|
|
1662
1662
|
principal?: string;
|
|
1663
1663
|
metadata?: object;
|
|
1664
1664
|
}
|
|
1665
|
+
interface V1Beta1RevertBillingUsageRequest {
|
|
1666
|
+
/** either provide org_id or infer org from project_id */
|
|
1667
|
+
org_id?: string;
|
|
1668
|
+
project_id?: string;
|
|
1669
|
+
/**
|
|
1670
|
+
* either provide billing_id of the org or API can infer the default
|
|
1671
|
+
* billing ID from either org_id or project_id, not both
|
|
1672
|
+
*/
|
|
1673
|
+
billing_id?: string;
|
|
1674
|
+
/** usage id to revert, a usage can only be allowed to revert once */
|
|
1675
|
+
usage_id?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* amount should be equal or less than the usage amount
|
|
1678
|
+
* @format int64
|
|
1679
|
+
*/
|
|
1680
|
+
amount?: string;
|
|
1681
|
+
}
|
|
1665
1682
|
interface V1Beta1Role {
|
|
1666
1683
|
id?: string;
|
|
1667
1684
|
name?: string;
|
|
@@ -1984,6 +2001,23 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1984
2001
|
/** Product to buy */
|
|
1985
2002
|
product_body?: V1Beta1CheckoutProductBody;
|
|
1986
2003
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1DelegatedCheckoutResponse, RpcStatus>>;
|
|
2004
|
+
/**
|
|
2005
|
+
* @description Revert billing usage for a billing account.
|
|
2006
|
+
*
|
|
2007
|
+
* @tags Billing
|
|
2008
|
+
* @name AdminServiceRevertBillingUsage
|
|
2009
|
+
* @summary Revert billing usage
|
|
2010
|
+
* @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
|
|
2011
|
+
* @secure
|
|
2012
|
+
*/
|
|
2013
|
+
adminServiceRevertBillingUsage: (orgId: string, billingId: string, usageId: string, body: {
|
|
2014
|
+
project_id?: string;
|
|
2015
|
+
/**
|
|
2016
|
+
* amount should be equal or less than the usage amount
|
|
2017
|
+
* @format int64
|
|
2018
|
+
*/
|
|
2019
|
+
amount?: string;
|
|
2020
|
+
}, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
1987
2021
|
/**
|
|
1988
2022
|
* @description Lists all the users added to the platform.
|
|
1989
2023
|
*
|
|
@@ -2776,7 +2810,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2776
2810
|
* @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
|
|
2777
2811
|
* @secure
|
|
2778
2812
|
*/
|
|
2779
|
-
frontierServiceListInvoices: (orgId: string, billingId: string,
|
|
2813
|
+
frontierServiceListInvoices: (orgId: string, billingId: string, query?: {
|
|
2814
|
+
nonzero_amount_only?: boolean;
|
|
2815
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
|
|
2780
2816
|
/**
|
|
2781
2817
|
* @description Get the upcoming invoice of a billing account.
|
|
2782
2818
|
*
|
|
@@ -2956,6 +2992,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2956
2992
|
frontierServiceListInvoices2: (orgId: string, query?: {
|
|
2957
2993
|
/** ID of the billing account to list invoices for */
|
|
2958
2994
|
billing_id?: string;
|
|
2995
|
+
nonzero_amount_only?: boolean;
|
|
2959
2996
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
|
|
2960
2997
|
/**
|
|
2961
2998
|
* @description Get the upcoming invoice of a billing account.
|
|
@@ -3281,6 +3318,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3281
3318
|
* @secure
|
|
3282
3319
|
*/
|
|
3283
3320
|
frontierServiceCreateBillingUsage2: (body: V1Beta1CreateBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3321
|
+
/**
|
|
3322
|
+
* @description Revert billing usage for a billing account.
|
|
3323
|
+
*
|
|
3324
|
+
* @tags Billing
|
|
3325
|
+
* @name AdminServiceRevertBillingUsage2
|
|
3326
|
+
* @summary Revert billing usage
|
|
3327
|
+
* @request POST:/v1beta1/organizations/billing/usages/revert
|
|
3328
|
+
* @secure
|
|
3329
|
+
*/
|
|
3330
|
+
adminServiceRevertBillingUsage2: (body: V1Beta1RevertBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3284
3331
|
/**
|
|
3285
3332
|
* No description
|
|
3286
3333
|
*
|
|
@@ -3741,7 +3788,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3741
3788
|
*
|
|
3742
3789
|
* @tags ServiceUser
|
|
3743
3790
|
* @name FrontierServiceCreateServiceUserKey
|
|
3744
|
-
* @summary Create service user key
|
|
3791
|
+
* @summary Create service user public/private key pair
|
|
3745
3792
|
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
3746
3793
|
* @secure
|
|
3747
3794
|
*/
|
|
@@ -3783,7 +3830,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3783
3830
|
*
|
|
3784
3831
|
* @tags ServiceUser
|
|
3785
3832
|
* @name FrontierServiceCreateServiceUserSecret
|
|
3786
|
-
* @summary Create service user secret
|
|
3833
|
+
* @summary Create service user client/secret
|
|
3787
3834
|
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
3788
3835
|
* @secure
|
|
3789
3836
|
*/
|