@raystack/frontier 0.19.0 → 0.21.0

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 CHANGED
@@ -438,6 +438,15 @@ interface V1Beta1CreatePlanResponse {
438
438
  /** Created plan */
439
439
  plan?: V1Beta1Plan;
440
440
  }
441
+ interface V1Beta1CreatePolicyForProjectBody {
442
+ /** unique id of the role to which policy is assigned */
443
+ role_id: string;
444
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty. <br/> *Example:* `Policy title` */
445
+ title?: string;
446
+ /** principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal. <br/> *Example:* `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
447
+ principal: string;
448
+ }
449
+ type V1Beta1CreatePolicyForProjectResponse = object;
441
450
  interface V1Beta1CreatePolicyResponse {
442
451
  policy?: V1Beta1Policy;
443
452
  }
@@ -527,6 +536,7 @@ type V1Beta1DeleteWebhookResponse = object;
527
536
  interface V1Beta1DescribePreferencesResponse {
528
537
  traits?: V1Beta1PreferenceTrait[];
529
538
  }
539
+ type V1Beta1DisableBillingAccountResponse = object;
530
540
  type V1Beta1DisableGroupResponse = object;
531
541
  type V1Beta1DisableOrganizationResponse = object;
532
542
  type V1Beta1DisableProjectResponse = object;
@@ -570,6 +580,7 @@ interface V1Beta1Domain {
570
580
  */
571
581
  updated_at?: string;
572
582
  }
583
+ type V1Beta1EnableBillingAccountResponse = object;
573
584
  type V1Beta1EnableGroupResponse = object;
574
585
  type V1Beta1EnableOrganizationResponse = object;
575
586
  type V1Beta1EnableProjectResponse = object;
@@ -605,6 +616,10 @@ interface V1Beta1GetBillingBalanceResponse {
605
616
  /** Balance of the billing account */
606
617
  balance?: BillingAccountBalance;
607
618
  }
619
+ interface V1Beta1GetCheckoutResponse {
620
+ /** Checkout session */
621
+ checkout_session?: V1Beta1CheckoutSession;
622
+ }
608
623
  interface V1Beta1GetCurrentUserResponse {
609
624
  user?: V1Beta1User;
610
625
  serviceuser?: V1Beta1ServiceUser;
@@ -1393,6 +1408,7 @@ interface V1Beta1ProjectRequestBody {
1393
1408
  /** unique id of the organization to which project belongs */
1394
1409
  org_id: string;
1395
1410
  }
1411
+ type V1Beta1RegisterBillingAccountResponse = object;
1396
1412
  interface V1Beta1Relation {
1397
1413
  id?: string;
1398
1414
  /**
@@ -1875,6 +1891,23 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1875
1891
  */
1876
1892
  amount?: string;
1877
1893
  }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1894
+ /**
1895
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
1896
+ *
1897
+ * @tags Checkout
1898
+ * @name AdminServiceDelegatedCheckout2
1899
+ * @summary Checkout a product or subscription
1900
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/checkouts
1901
+ * @secure
1902
+ */
1903
+ adminServiceDelegatedCheckout2: (orgId: string, body: {
1904
+ /** ID of the billing account to update the subscription for */
1905
+ billing_id?: string;
1906
+ /** Subscription to create */
1907
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
1908
+ /** Product to buy */
1909
+ product_body?: V1Beta1CheckoutProductBody;
1910
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1DelegatedCheckoutResponse, RpcStatus>>;
1878
1911
  /**
1879
1912
  * @description Lists all the users added to the platform.
1880
1913
  *
@@ -2674,6 +2707,8 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2674
2707
  frontierServiceCreateBillingAccount: (orgId: string, body: {
2675
2708
  /** Billing account to create. */
2676
2709
  body?: V1Beta1BillingAccountRequestBody | undefined;
2710
+ /** Offline billing account don't get registered with billing provider */
2711
+ offline?: boolean | undefined;
2677
2712
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, RpcStatus>>;
2678
2713
  /**
2679
2714
  * @description Check if a billing account is entitled to a feature.
@@ -2722,6 +2757,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2722
2757
  /** Payment method setup */
2723
2758
  setup_body?: V1Beta1CheckoutSetupBody;
2724
2759
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCheckoutResponse, RpcStatus>>;
2760
+ /**
2761
+ * @description Get a checkout by ID.
2762
+ *
2763
+ * @tags Checkout
2764
+ * @name FrontierServiceGetCheckout
2765
+ * @summary Get checkout
2766
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts/{id}
2767
+ * @secure
2768
+ */
2769
+ frontierServiceGetCheckout: (orgId: string, billingId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCheckoutResponse, RpcStatus>>;
2725
2770
  /**
2726
2771
  * @description List all invoices of a billing account.
2727
2772
  *
@@ -2831,6 +2876,10 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2831
2876
  frontierServiceListBillingTransactions: (orgId: string, billingId: string, query?: {
2832
2877
  /** @format date-time */
2833
2878
  since?: string;
2879
+ /** @format date-time */
2880
+ start_range?: string;
2881
+ /** @format date-time */
2882
+ end_range?: string;
2834
2883
  expand?: string[];
2835
2884
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListBillingTransactionsResponse, RpcStatus>>;
2836
2885
  /**
@@ -2897,6 +2946,26 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2897
2946
  * @secure
2898
2947
  */
2899
2948
  frontierServiceGetBillingBalance: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingBalanceResponse, RpcStatus>>;
2949
+ /**
2950
+ * @description Disable a billing account by ID. Disabling a billing account doesn't automatically disable it's active subscriptions.
2951
+ *
2952
+ * @tags Billing
2953
+ * @name FrontierServiceDisableBillingAccount
2954
+ * @summary Disable billing account
2955
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
2956
+ * @secure
2957
+ */
2958
+ frontierServiceDisableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2959
+ /**
2960
+ * @description Enable a billing account by ID.
2961
+ *
2962
+ * @tags Billing
2963
+ * @name FrontierServiceEnableBillingAccount
2964
+ * @summary Enable billing account
2965
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
2966
+ * @secure
2967
+ */
2968
+ frontierServiceEnableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2900
2969
  /**
2901
2970
  * @description Check if a billing account has trialed.
2902
2971
  *
@@ -2907,6 +2976,63 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2907
2976
  * @secure
2908
2977
  */
2909
2978
  frontierServiceHasTrialed: (orgId: string, id: string, planId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1HasTrialedResponse, RpcStatus>>;
2979
+ /**
2980
+ * @description Register a billing account to a provider if it's not already.
2981
+ *
2982
+ * @tags Billing
2983
+ * @name FrontierServiceRegisterBillingAccount
2984
+ * @summary Register billing account to provider
2985
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
2986
+ * @secure
2987
+ */
2988
+ frontierServiceRegisterBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2989
+ /**
2990
+ * @description List all checkouts of a billing account.
2991
+ *
2992
+ * @tags Checkout
2993
+ * @name FrontierServiceListCheckouts2
2994
+ * @summary List checkouts
2995
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts
2996
+ * @secure
2997
+ */
2998
+ frontierServiceListCheckouts2: (orgId: string, query?: {
2999
+ /** ID of the billing account to get the subscriptions for */
3000
+ billing_id?: string;
3001
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCheckoutsResponse, RpcStatus>>;
3002
+ /**
3003
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
3004
+ *
3005
+ * @tags Checkout
3006
+ * @name FrontierServiceCreateCheckout2
3007
+ * @summary Checkout a product or subscription
3008
+ * @request POST:/v1beta1/organizations/{org_id}/billing/checkouts
3009
+ * @secure
3010
+ */
3011
+ frontierServiceCreateCheckout2: (orgId: string, body: {
3012
+ /** ID of the billing account to update the subscription for */
3013
+ billing_id?: string;
3014
+ success_url?: string;
3015
+ cancel_url?: string;
3016
+ /** Subscription to create */
3017
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
3018
+ /** Product to buy */
3019
+ product_body?: V1Beta1CheckoutProductBody;
3020
+ /** Payment method setup */
3021
+ setup_body?: V1Beta1CheckoutSetupBody;
3022
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCheckoutResponse, RpcStatus>>;
3023
+ /**
3024
+ * @description Get a checkout by ID.
3025
+ *
3026
+ * @tags Checkout
3027
+ * @name FrontierServiceGetCheckout2
3028
+ * @summary Get checkout
3029
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts/{id}
3030
+ * @secure
3031
+ */
3032
+ frontierServiceGetCheckout2: (orgId: string, id: string, query?: {
3033
+ /** ID of the billing account to get the subscriptions for */
3034
+ billing_id?: string;
3035
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCheckoutResponse, RpcStatus>>;
2910
3036
  /**
2911
3037
  * @description List all invoices of a billing account.
2912
3038
  *
@@ -2935,6 +3061,110 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2935
3061
  /** ID of the billing account to get the upcoming invoice for */
2936
3062
  billing_id?: string;
2937
3063
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetUpcomingInvoiceResponse, RpcStatus>>;
3064
+ /**
3065
+ * @description List subscriptions of a billing account.
3066
+ *
3067
+ * @tags Subscription
3068
+ * @name FrontierServiceListSubscriptions2
3069
+ * @summary List subscriptions
3070
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions
3071
+ * @secure
3072
+ */
3073
+ frontierServiceListSubscriptions2: (orgId: string, query?: {
3074
+ /** ID of the billing account to list subscriptions for */
3075
+ billing_id?: string;
3076
+ /** Filter subscriptions by state */
3077
+ state?: string;
3078
+ plan?: string;
3079
+ expand?: string[];
3080
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListSubscriptionsResponse, RpcStatus>>;
3081
+ /**
3082
+ * @description Get a subscription by ID.
3083
+ *
3084
+ * @tags Subscription
3085
+ * @name FrontierServiceGetSubscription2
3086
+ * @summary Get subscription
3087
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
3088
+ * @secure
3089
+ */
3090
+ frontierServiceGetSubscription2: (orgId: string, id: string, query?: {
3091
+ /** ID of the billing account to get the subscription for */
3092
+ billing_id?: string;
3093
+ expand?: string[];
3094
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetSubscriptionResponse, RpcStatus>>;
3095
+ /**
3096
+ * @description Update a subscription by ID.
3097
+ *
3098
+ * @tags Subscription
3099
+ * @name FrontierServiceUpdateSubscription2
3100
+ * @summary Update subscription
3101
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
3102
+ * @secure
3103
+ */
3104
+ frontierServiceUpdateSubscription2: (orgId: string, id: string, body: {
3105
+ /** ID of the billing account to update the subscription for */
3106
+ billing_id?: string;
3107
+ metadata?: object;
3108
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateSubscriptionResponse, RpcStatus>>;
3109
+ /**
3110
+ * @description Cancel a subscription by ID.
3111
+ *
3112
+ * @tags Subscription
3113
+ * @name FrontierServiceCancelSubscription2
3114
+ * @summary Cancel subscription
3115
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/cancel
3116
+ * @secure
3117
+ */
3118
+ frontierServiceCancelSubscription2: (orgId: string, id: string, body: {
3119
+ /** ID of the billing account to update the subscription for */
3120
+ billing_id?: string;
3121
+ immediate?: boolean;
3122
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3123
+ /**
3124
+ * @description Change a subscription plan by ID.
3125
+ *
3126
+ * @tags Subscription
3127
+ * @name FrontierServiceChangeSubscription2
3128
+ * @summary Change subscription plan
3129
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/change
3130
+ * @secure
3131
+ */
3132
+ frontierServiceChangeSubscription2: (orgId: string, id: string, body: {
3133
+ /** ID of the billing account to update the subscription for */
3134
+ billing_id?: string;
3135
+ /**
3136
+ * plan to change to
3137
+ * deprecated in favor of plan_change
3138
+ */
3139
+ plan?: string;
3140
+ /**
3141
+ * should the change be immediate or at the end of the current billing period
3142
+ * deprecated in favor of plan_change
3143
+ */
3144
+ immediate?: boolean;
3145
+ plan_change?: ChangeSubscriptionRequestPlanChange;
3146
+ phase_change?: ChangeSubscriptionRequestPhaseChange;
3147
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ChangeSubscriptionResponse, RpcStatus>>;
3148
+ /**
3149
+ * @description List all transactions of a billing account.
3150
+ *
3151
+ * @tags Transaction
3152
+ * @name FrontierServiceListBillingTransactions2
3153
+ * @summary List billing transactions
3154
+ * @request GET:/v1beta1/organizations/{org_id}/billing/transactions
3155
+ * @secure
3156
+ */
3157
+ frontierServiceListBillingTransactions2: (orgId: string, query?: {
3158
+ /** ID of the billing account to update the subscription for */
3159
+ billing_id?: string;
3160
+ /** @format date-time */
3161
+ since?: string;
3162
+ /** @format date-time */
3163
+ start_range?: string;
3164
+ /** @format date-time */
3165
+ end_range?: string;
3166
+ expand?: string[];
3167
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListBillingTransactionsResponse, RpcStatus>>;
2938
3168
  /**
2939
3169
  * @description Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation.
2940
3170
  *
@@ -3367,6 +3597,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3367
3597
  * @secure
3368
3598
  */
3369
3599
  frontierServiceUpdatePolicy: (id: string, body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePolicyResponse, RpcStatus>>;
3600
+ /**
3601
+ * @description Create a policy for a project
3602
+ *
3603
+ * @tags Policy
3604
+ * @name FrontierServiceCreatePolicyForProject
3605
+ * @summary Create Policy for Project
3606
+ * @request POST:/v1beta1/policies/projects/{project_id}
3607
+ * @secure
3608
+ */
3609
+ frontierServiceCreatePolicyForProject: (projectId: string, body: V1Beta1CreatePolicyForProjectBody, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3370
3610
  /**
3371
3611
  * @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
3372
3612
  *
@@ -4070,4 +4310,4 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4070
4310
 
4071
4311
  declare const FrontierClient: typeof V1Beta1;
4072
4312
 
4073
- export { BillingAccountAddress, BillingAccountBalance, BillingAccountTax, 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, V1Beta1BillingWebhookCallbackResponse, 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, V1Beta1CreateServiceUserCredentialResponse, V1Beta1CreateServiceUserJWKResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserTokenResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1CreateWebhookRequest, V1Beta1CreateWebhookResponse, V1Beta1DelegatedCheckoutResponse, V1Beta1DeleteBillingAccountResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserCredentialResponse, V1Beta1DeleteServiceUserJWKResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserTokenResponse, V1Beta1DeleteUserResponse, V1Beta1DeleteWebhookResponse, 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, V1Beta1GetServiceUserJWKResponse, 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, V1Beta1ListServiceUserCredentialsResponse, V1Beta1ListServiceUserJWKsResponse, V1Beta1ListServiceUserTokensResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListSubscriptionsResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1ListWebhooksResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1PaymentMethod, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Plan, V1Beta1PlanRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Price, V1Beta1Product, V1Beta1ProductRequestBody, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1RemovePlatformUserRequest, V1Beta1RemovePlatformUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1RevertBillingUsageRequest, V1Beta1RevertBillingUsageResponse, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserJWK, V1Beta1ServiceUserRequestBody, V1Beta1ServiceUserToken, V1Beta1Subscription, V1Beta1UpdateBillingAccountResponse, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateFeatureResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePlanResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProductResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateSubscriptionResponse, V1Beta1UpdateUserResponse, V1Beta1UpdateWebhookResponse, V1Beta1Usage, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse, V1Beta1Webhook, V1Beta1WebhookRequestBody, WebhookSecret };
4313
+ export { BillingAccountAddress, BillingAccountBalance, BillingAccountTax, 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, V1Beta1BillingWebhookCallbackResponse, 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, V1Beta1CreatePolicyForProjectBody, V1Beta1CreatePolicyForProjectResponse, V1Beta1CreatePolicyResponse, V1Beta1CreatePreferencesRequest, V1Beta1CreatePreferencesResponse, V1Beta1CreateProductRequest, V1Beta1CreateProductResponse, V1Beta1CreateProjectPreferencesResponse, V1Beta1CreateProjectResourceResponse, V1Beta1CreateProjectResponse, V1Beta1CreateRelationResponse, V1Beta1CreateRoleResponse, V1Beta1CreateServiceUserCredentialResponse, V1Beta1CreateServiceUserJWKResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserTokenResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1CreateWebhookRequest, V1Beta1CreateWebhookResponse, V1Beta1DelegatedCheckoutResponse, V1Beta1DeleteBillingAccountResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserCredentialResponse, V1Beta1DeleteServiceUserJWKResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserTokenResponse, V1Beta1DeleteUserResponse, V1Beta1DeleteWebhookResponse, V1Beta1DescribePreferencesResponse, V1Beta1DisableBillingAccountResponse, V1Beta1DisableGroupResponse, V1Beta1DisableOrganizationResponse, V1Beta1DisableProjectResponse, V1Beta1DisableUserResponse, V1Beta1Domain, V1Beta1EnableBillingAccountResponse, V1Beta1EnableGroupResponse, V1Beta1EnableOrganizationResponse, V1Beta1EnableProjectResponse, V1Beta1EnableUserResponse, V1Beta1Feature, V1Beta1FeatureRequestBody, V1Beta1GetBillingAccountResponse, V1Beta1GetBillingBalanceResponse, V1Beta1GetCheckoutResponse, V1Beta1GetCurrentUserResponse, V1Beta1GetFeatureResponse, V1Beta1GetGroupResponse, V1Beta1GetJWKsResponse, V1Beta1GetMetaSchemaResponse, V1Beta1GetNamespaceResponse, V1Beta1GetOrganizationAuditLogResponse, V1Beta1GetOrganizationDomainResponse, V1Beta1GetOrganizationInvitationResponse, V1Beta1GetOrganizationResponse, V1Beta1GetOrganizationRoleResponse, V1Beta1GetPermissionResponse, V1Beta1GetPlanResponse, V1Beta1GetPolicyResponse, V1Beta1GetProductResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserJWKResponse, 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, V1Beta1ListServiceUserCredentialsResponse, V1Beta1ListServiceUserJWKsResponse, V1Beta1ListServiceUserTokensResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListSubscriptionsResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1ListWebhooksResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1PaymentMethod, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Plan, V1Beta1PlanRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Price, V1Beta1Product, V1Beta1ProductRequestBody, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1RegisterBillingAccountResponse, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1RemovePlatformUserRequest, V1Beta1RemovePlatformUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1RevertBillingUsageRequest, V1Beta1RevertBillingUsageResponse, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserJWK, V1Beta1ServiceUserRequestBody, V1Beta1ServiceUserToken, V1Beta1Subscription, V1Beta1UpdateBillingAccountResponse, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateFeatureResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePlanResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProductResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateSubscriptionResponse, V1Beta1UpdateUserResponse, V1Beta1UpdateWebhookResponse, V1Beta1Usage, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse, V1Beta1Webhook, V1Beta1WebhookRequestBody, WebhookSecret };
package/dist/index.js CHANGED
@@ -323,6 +323,23 @@ var V1Beta1 = class extends HttpClient {
323
323
  type: "application/json" /* Json */,
324
324
  format: "json"
325
325
  }, params));
326
+ /**
327
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
328
+ *
329
+ * @tags Checkout
330
+ * @name AdminServiceDelegatedCheckout2
331
+ * @summary Checkout a product or subscription
332
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/checkouts
333
+ * @secure
334
+ */
335
+ this.adminServiceDelegatedCheckout2 = (orgId, body, params = {}) => this.request(__spreadValues({
336
+ path: `/v1beta1/admin/organizations/${orgId}/billing/checkouts`,
337
+ method: "POST",
338
+ body,
339
+ secure: true,
340
+ type: "application/json" /* Json */,
341
+ format: "json"
342
+ }, params));
326
343
  /**
327
344
  * @description Lists all the users added to the platform.
328
345
  *
@@ -1389,6 +1406,21 @@ var V1Beta1 = class extends HttpClient {
1389
1406
  type: "application/json" /* Json */,
1390
1407
  format: "json"
1391
1408
  }, params));
1409
+ /**
1410
+ * @description Get a checkout by ID.
1411
+ *
1412
+ * @tags Checkout
1413
+ * @name FrontierServiceGetCheckout
1414
+ * @summary Get checkout
1415
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts/{id}
1416
+ * @secure
1417
+ */
1418
+ this.frontierServiceGetCheckout = (orgId, billingId, id, params = {}) => this.request(__spreadValues({
1419
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/checkouts/${id}`,
1420
+ method: "GET",
1421
+ secure: true,
1422
+ format: "json"
1423
+ }, params));
1392
1424
  /**
1393
1425
  * @description List all invoices of a billing account.
1394
1426
  *
@@ -1599,6 +1631,38 @@ var V1Beta1 = class extends HttpClient {
1599
1631
  secure: true,
1600
1632
  format: "json"
1601
1633
  }, params));
1634
+ /**
1635
+ * @description Disable a billing account by ID. Disabling a billing account doesn't automatically disable it's active subscriptions.
1636
+ *
1637
+ * @tags Billing
1638
+ * @name FrontierServiceDisableBillingAccount
1639
+ * @summary Disable billing account
1640
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
1641
+ * @secure
1642
+ */
1643
+ this.frontierServiceDisableBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1644
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/disable`,
1645
+ method: "POST",
1646
+ body,
1647
+ secure: true,
1648
+ format: "json"
1649
+ }, params));
1650
+ /**
1651
+ * @description Enable a billing account by ID.
1652
+ *
1653
+ * @tags Billing
1654
+ * @name FrontierServiceEnableBillingAccount
1655
+ * @summary Enable billing account
1656
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
1657
+ * @secure
1658
+ */
1659
+ this.frontierServiceEnableBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1660
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/enable`,
1661
+ method: "POST",
1662
+ body,
1663
+ secure: true,
1664
+ format: "json"
1665
+ }, params));
1602
1666
  /**
1603
1667
  * @description Check if a billing account has trialed.
1604
1668
  *
@@ -1614,6 +1678,71 @@ var V1Beta1 = class extends HttpClient {
1614
1678
  secure: true,
1615
1679
  format: "json"
1616
1680
  }, params));
1681
+ /**
1682
+ * @description Register a billing account to a provider if it's not already.
1683
+ *
1684
+ * @tags Billing
1685
+ * @name FrontierServiceRegisterBillingAccount
1686
+ * @summary Register billing account to provider
1687
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
1688
+ * @secure
1689
+ */
1690
+ this.frontierServiceRegisterBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1691
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/register`,
1692
+ method: "POST",
1693
+ body,
1694
+ secure: true,
1695
+ format: "json"
1696
+ }, params));
1697
+ /**
1698
+ * @description List all checkouts of a billing account.
1699
+ *
1700
+ * @tags Checkout
1701
+ * @name FrontierServiceListCheckouts2
1702
+ * @summary List checkouts
1703
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts
1704
+ * @secure
1705
+ */
1706
+ this.frontierServiceListCheckouts2 = (orgId, query, params = {}) => this.request(__spreadValues({
1707
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts`,
1708
+ method: "GET",
1709
+ query,
1710
+ secure: true,
1711
+ format: "json"
1712
+ }, params));
1713
+ /**
1714
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
1715
+ *
1716
+ * @tags Checkout
1717
+ * @name FrontierServiceCreateCheckout2
1718
+ * @summary Checkout a product or subscription
1719
+ * @request POST:/v1beta1/organizations/{org_id}/billing/checkouts
1720
+ * @secure
1721
+ */
1722
+ this.frontierServiceCreateCheckout2 = (orgId, body, params = {}) => this.request(__spreadValues({
1723
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts`,
1724
+ method: "POST",
1725
+ body,
1726
+ secure: true,
1727
+ type: "application/json" /* Json */,
1728
+ format: "json"
1729
+ }, params));
1730
+ /**
1731
+ * @description Get a checkout by ID.
1732
+ *
1733
+ * @tags Checkout
1734
+ * @name FrontierServiceGetCheckout2
1735
+ * @summary Get checkout
1736
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts/{id}
1737
+ * @secure
1738
+ */
1739
+ this.frontierServiceGetCheckout2 = (orgId, id, query, params = {}) => this.request(__spreadValues({
1740
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts/${id}`,
1741
+ method: "GET",
1742
+ query,
1743
+ secure: true,
1744
+ format: "json"
1745
+ }, params));
1617
1746
  /**
1618
1747
  * @description List all invoices of a billing account.
1619
1748
  *
@@ -1646,6 +1775,105 @@ var V1Beta1 = class extends HttpClient {
1646
1775
  secure: true,
1647
1776
  format: "json"
1648
1777
  }, params));
1778
+ /**
1779
+ * @description List subscriptions of a billing account.
1780
+ *
1781
+ * @tags Subscription
1782
+ * @name FrontierServiceListSubscriptions2
1783
+ * @summary List subscriptions
1784
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions
1785
+ * @secure
1786
+ */
1787
+ this.frontierServiceListSubscriptions2 = (orgId, query, params = {}) => this.request(__spreadValues({
1788
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions`,
1789
+ method: "GET",
1790
+ query,
1791
+ secure: true,
1792
+ format: "json"
1793
+ }, params));
1794
+ /**
1795
+ * @description Get a subscription by ID.
1796
+ *
1797
+ * @tags Subscription
1798
+ * @name FrontierServiceGetSubscription2
1799
+ * @summary Get subscription
1800
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
1801
+ * @secure
1802
+ */
1803
+ this.frontierServiceGetSubscription2 = (orgId, id, query, params = {}) => this.request(__spreadValues({
1804
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}`,
1805
+ method: "GET",
1806
+ query,
1807
+ secure: true,
1808
+ format: "json"
1809
+ }, params));
1810
+ /**
1811
+ * @description Update a subscription by ID.
1812
+ *
1813
+ * @tags Subscription
1814
+ * @name FrontierServiceUpdateSubscription2
1815
+ * @summary Update subscription
1816
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
1817
+ * @secure
1818
+ */
1819
+ this.frontierServiceUpdateSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1820
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}`,
1821
+ method: "POST",
1822
+ body,
1823
+ secure: true,
1824
+ type: "application/json" /* Json */,
1825
+ format: "json"
1826
+ }, params));
1827
+ /**
1828
+ * @description Cancel a subscription by ID.
1829
+ *
1830
+ * @tags Subscription
1831
+ * @name FrontierServiceCancelSubscription2
1832
+ * @summary Cancel subscription
1833
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/cancel
1834
+ * @secure
1835
+ */
1836
+ this.frontierServiceCancelSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1837
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}/cancel`,
1838
+ method: "POST",
1839
+ body,
1840
+ secure: true,
1841
+ type: "application/json" /* Json */,
1842
+ format: "json"
1843
+ }, params));
1844
+ /**
1845
+ * @description Change a subscription plan by ID.
1846
+ *
1847
+ * @tags Subscription
1848
+ * @name FrontierServiceChangeSubscription2
1849
+ * @summary Change subscription plan
1850
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/change
1851
+ * @secure
1852
+ */
1853
+ this.frontierServiceChangeSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1854
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}/change`,
1855
+ method: "POST",
1856
+ body,
1857
+ secure: true,
1858
+ type: "application/json" /* Json */,
1859
+ format: "json"
1860
+ }, params));
1861
+ /**
1862
+ * @description List all transactions of a billing account.
1863
+ *
1864
+ * @tags Transaction
1865
+ * @name FrontierServiceListBillingTransactions2
1866
+ * @summary List billing transactions
1867
+ * @request GET:/v1beta1/organizations/{org_id}/billing/transactions
1868
+ * @secure
1869
+ */
1870
+ this.frontierServiceListBillingTransactions2 = (orgId, query, params = {}) => this.request(__spreadValues({
1871
+ path: `/v1beta1/organizations/${orgId}/billing/transactions`,
1872
+ method: "GET",
1873
+ query,
1874
+ secure: true,
1875
+ format: "json"
1876
+ }, params));
1649
1877
  /**
1650
1878
  * @description Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation.
1651
1879
  *
@@ -2265,6 +2493,23 @@ var V1Beta1 = class extends HttpClient {
2265
2493
  secure: true,
2266
2494
  format: "json"
2267
2495
  }, params));
2496
+ /**
2497
+ * @description Create a policy for a project
2498
+ *
2499
+ * @tags Policy
2500
+ * @name FrontierServiceCreatePolicyForProject
2501
+ * @summary Create Policy for Project
2502
+ * @request POST:/v1beta1/policies/projects/{project_id}
2503
+ * @secure
2504
+ */
2505
+ this.frontierServiceCreatePolicyForProject = (projectId, body, params = {}) => this.request(__spreadValues({
2506
+ path: `/v1beta1/policies/projects/${projectId}`,
2507
+ method: "POST",
2508
+ body,
2509
+ secure: true,
2510
+ type: "application/json" /* Json */,
2511
+ format: "json"
2512
+ }, params));
2268
2513
  /**
2269
2514
  * @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
2270
2515
  *