@widgetic/api-sdk 1.0.21 → 1.0.22
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/apis/AdminBillingApi.d.ts +92 -1
- package/dist/apis/AdminBillingApi.js +246 -1
- package/dist/apis/AgentApi.d.ts +2 -2
- package/dist/apis/AgentApi.js +2 -2
- package/dist/apis/AuthenticationApi.d.ts +12 -1
- package/dist/apis/AuthenticationApi.js +31 -0
- package/dist/apis/BillingApi.js +13 -13
- package/dist/apis/CompositionsApi.d.ts +5 -5
- package/dist/apis/CompositionsApi.js +3 -3
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/MCPApi.d.ts +6 -6
- package/dist/apis/MCPApi.js +15 -6
- package/dist/apis/NoticesApi.d.ts +41 -0
- package/dist/apis/NoticesApi.js +103 -0
- package/dist/apis/OrganizationsApi.d.ts +17 -4
- package/dist/apis/OrganizationsApi.js +41 -4
- package/dist/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/apis/SubscriptionsApi.js +82 -5
- package/dist/apis/WidgetsApi.d.ts +19 -35
- package/dist/apis/WidgetsApi.js +32 -32
- package/dist/apis/WorkflowsApi.d.ts +2 -2
- package/dist/apis/WorkflowsApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdminBillingApi.d.ts +92 -1
- package/dist/esm/apis/AdminBillingApi.js +246 -1
- package/dist/esm/apis/AgentApi.d.ts +2 -2
- package/dist/esm/apis/AgentApi.js +2 -2
- package/dist/esm/apis/AuthenticationApi.d.ts +12 -1
- package/dist/esm/apis/AuthenticationApi.js +32 -1
- package/dist/esm/apis/BillingApi.js +13 -13
- package/dist/esm/apis/CompositionsApi.d.ts +5 -5
- package/dist/esm/apis/CompositionsApi.js +4 -4
- package/dist/esm/apis/CreditsApi.d.ts +4 -4
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/MCPApi.d.ts +6 -6
- package/dist/esm/apis/MCPApi.js +15 -6
- package/dist/esm/apis/NoticesApi.d.ts +41 -0
- package/dist/esm/apis/NoticesApi.js +99 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +17 -4
- package/dist/esm/apis/OrganizationsApi.js +41 -4
- package/dist/esm/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/esm/apis/SubscriptionsApi.js +83 -6
- package/dist/esm/apis/WidgetsApi.d.ts +19 -35
- package/dist/esm/apis/WidgetsApi.js +33 -33
- package/dist/esm/apis/WorkflowsApi.d.ts +2 -2
- package/dist/esm/apis/WorkflowsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +41 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +43 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +44 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +50 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +53 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +51 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +43 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +47 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +43 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +45 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/esm/models/CreateMessageRequest.d.ts +13 -0
- package/dist/esm/models/CreateMessageRequest.js +2 -0
- package/dist/esm/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/esm/models/GenerateCodeRequest.js +14 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.js +43 -0
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/esm/models/ListAccountNotices200Response.js +44 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.js +42 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.js +53 -0
- package/dist/esm/models/LoginUser200Response.d.ts +38 -0
- package/dist/esm/models/LoginUser200Response.js +43 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.js +56 -0
- package/dist/esm/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/esm/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/esm/models/ProcessRefund200Response.js +2 -0
- package/dist/esm/models/RefundRequest.d.ts +10 -4
- package/dist/esm/models/RefundRequest.js +4 -4
- package/dist/esm/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/esm/models/RollbackComponent200Response.js +43 -0
- package/dist/esm/models/SignupUserRequest.d.ts +6 -0
- package/dist/esm/models/SignupUserRequest.js +2 -0
- package/dist/esm/models/UpdateSubscription.d.ts +30 -8
- package/dist/esm/models/UpdateSubscription.js +21 -8
- package/dist/esm/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/esm/models/UploadWidgetThumbnail200Response.js +44 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.js +41 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.js +43 -0
- package/dist/esm/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/esm/models/ValidateInviteCode200Response.js +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.js +45 -0
- package/dist/esm/models/index.d.ts +26 -1
- package/dist/esm/models/index.js +26 -1
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +48 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +50 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +51 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +60 -0
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +70 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +50 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +52 -0
- package/dist/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/models/CreateMessageRequest.d.ts +13 -0
- package/dist/models/CreateMessageRequest.js +2 -0
- package/dist/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/models/GenerateCodeRequest.js +14 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/models/ListAccountNotices200Response.js +51 -0
- package/dist/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/models/ListAccountNotices200ResponseData.js +49 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.js +60 -0
- package/dist/models/LoginUser200Response.d.ts +38 -0
- package/dist/models/LoginUser200Response.js +50 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.js +64 -0
- package/dist/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/models/ProcessRefund200Response.js +2 -0
- package/dist/models/RefundRequest.d.ts +10 -4
- package/dist/models/RefundRequest.js +4 -4
- package/dist/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/models/RollbackComponent200Response.js +50 -0
- package/dist/models/SignupUserRequest.d.ts +6 -0
- package/dist/models/SignupUserRequest.js +2 -0
- package/dist/models/UpdateSubscription.d.ts +30 -8
- package/dist/models/UpdateSubscription.js +22 -9
- package/dist/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/models/UploadWidgetThumbnail200Response.js +51 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.js +48 -0
- package/dist/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnailRequest.js +50 -0
- package/dist/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/models/ValidateInviteCode200Response.js +51 -0
- package/dist/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/models/ValidateInviteCode200ResponseData.js +52 -0
- package/dist/models/index.d.ts +26 -1
- package/dist/models/index.js +26 -1
- package/package.json +1 -1
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiV1AdminBillingGrantsGrantIdRejectPostRequest, ApiV1AdminBillingGrantsPostRequest, ApiV1AdminBillingRefundsPostRequest, ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiV1AdminBillingGrantsGrantIdRejectPostRequest, ApiV1AdminBillingGrantsPostRequest, ApiV1AdminBillingPlansPricesBackfillPostRequest, ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest, ApiV1AdminBillingRefundsClawbacksGet200Response, ApiV1AdminBillingRefundsPostRequest, ApiV1AdminBillingRefundsPreviewPost200Response, ApiV1AdminBillingRefundsPreviewPostRequest, ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiV1AdminBillingAuditGetRequest {
|
|
15
15
|
subjectType?: ApiV1AdminBillingAuditGetSubjectTypeEnum;
|
|
16
16
|
subjectId?: string;
|
|
17
17
|
action?: string;
|
|
18
18
|
limit?: number;
|
|
19
19
|
}
|
|
20
|
+
export interface ApiV1AdminBillingDisputesGetRequest {
|
|
21
|
+
page?: number;
|
|
22
|
+
size?: number;
|
|
23
|
+
}
|
|
20
24
|
export interface ApiV1AdminBillingGrantsGetRequest {
|
|
21
25
|
status?: string;
|
|
22
26
|
limit?: number;
|
|
@@ -38,9 +42,26 @@ export interface ApiV1AdminBillingMetricsGetRequest {
|
|
|
38
42
|
export interface ApiV1AdminBillingPartnerPartnerIdInvoicePostRequest {
|
|
39
43
|
partnerId: string;
|
|
40
44
|
}
|
|
45
|
+
export interface ApiV1AdminBillingPlansPricesBackfillPostOperationRequest {
|
|
46
|
+
apiV1AdminBillingPlansPricesBackfillPostRequest?: ApiV1AdminBillingPlansPricesBackfillPostRequest;
|
|
47
|
+
}
|
|
48
|
+
export interface ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest {
|
|
49
|
+
planType: string;
|
|
50
|
+
billingFrequency: string;
|
|
51
|
+
apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest;
|
|
52
|
+
}
|
|
53
|
+
export interface ApiV1AdminBillingRefundsClawbacksGetRequest {
|
|
54
|
+
subjectType?: ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum;
|
|
55
|
+
subjectId?: string;
|
|
56
|
+
page?: number;
|
|
57
|
+
size?: number;
|
|
58
|
+
}
|
|
41
59
|
export interface ApiV1AdminBillingRefundsPostOperationRequest {
|
|
42
60
|
apiV1AdminBillingRefundsPostRequest: ApiV1AdminBillingRefundsPostRequest;
|
|
43
61
|
}
|
|
62
|
+
export interface ApiV1AdminBillingRefundsPreviewPostOperationRequest {
|
|
63
|
+
apiV1AdminBillingRefundsPreviewPostRequest: ApiV1AdminBillingRefundsPreviewPostRequest;
|
|
64
|
+
}
|
|
44
65
|
export interface ApiV1AdminBillingSubscriptionsSubjectIdCancelAtPeriodEndPostRequest {
|
|
45
66
|
subjectId: string;
|
|
46
67
|
}
|
|
@@ -92,6 +113,16 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
|
|
|
92
113
|
* Billing admin dashboard aggregate
|
|
93
114
|
*/
|
|
94
115
|
apiV1AdminBillingDashboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
|
|
118
|
+
* Open dispute seat-suspensions, for the admin billing console
|
|
119
|
+
*/
|
|
120
|
+
apiV1AdminBillingDisputesGetRaw(requestParameters: ApiV1AdminBillingDisputesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
121
|
+
/**
|
|
122
|
+
* Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
|
|
123
|
+
* Open dispute seat-suspensions, for the admin billing console
|
|
124
|
+
*/
|
|
125
|
+
apiV1AdminBillingDisputesGet(requestParameters?: ApiV1AdminBillingDisputesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
95
126
|
/**
|
|
96
127
|
* Expire admin grants past their expiry date (deduct remaining balance)
|
|
97
128
|
*/
|
|
@@ -156,6 +187,36 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
|
|
|
156
187
|
* Issue a Stripe invoice for a partner contract
|
|
157
188
|
*/
|
|
158
189
|
apiV1AdminBillingPartnerPartnerIdInvoicePost(requestParameters: ApiV1AdminBillingPartnerPartnerIdInvoicePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
|
|
192
|
+
* Fill in the plan price ids from the catalogue (dry run by default)
|
|
193
|
+
*/
|
|
194
|
+
apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters: ApiV1AdminBillingPlansPricesBackfillPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
195
|
+
/**
|
|
196
|
+
* For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
|
|
197
|
+
* Fill in the plan price ids from the catalogue (dry run by default)
|
|
198
|
+
*/
|
|
199
|
+
apiV1AdminBillingPlansPricesBackfillPost(requestParameters?: ApiV1AdminBillingPlansPricesBackfillPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
|
|
202
|
+
* Audit the stored plan price ids against the catalogue
|
|
203
|
+
*/
|
|
204
|
+
apiV1AdminBillingPlansPricesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
205
|
+
/**
|
|
206
|
+
* For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
|
|
207
|
+
* Audit the stored plan price ids against the catalogue
|
|
208
|
+
*/
|
|
209
|
+
apiV1AdminBillingPlansPricesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
|
|
212
|
+
* Set a plan\'s Stripe price id, after verifying it bills the catalogue
|
|
213
|
+
*/
|
|
214
|
+
apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
215
|
+
/**
|
|
216
|
+
* The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
|
|
217
|
+
* Set a plan\'s Stripe price id, after verifying it bills the catalogue
|
|
218
|
+
*/
|
|
219
|
+
apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut(requestParameters: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
220
|
/**
|
|
160
221
|
* Find local invoice rows missing their Stripe counterpart
|
|
161
222
|
*/
|
|
@@ -165,13 +226,35 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
|
|
|
165
226
|
*/
|
|
166
227
|
apiV1AdminBillingReconciliationDanglingInvoicesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
167
228
|
/**
|
|
229
|
+
* Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
|
|
230
|
+
* Recent seat credit clawbacks (refund/chargeback reversals)
|
|
231
|
+
*/
|
|
232
|
+
apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters: ApiV1AdminBillingRefundsClawbacksGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1AdminBillingRefundsClawbacksGet200Response>>;
|
|
233
|
+
/**
|
|
234
|
+
* Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
|
|
235
|
+
* Recent seat credit clawbacks (refund/chargeback reversals)
|
|
236
|
+
*/
|
|
237
|
+
apiV1AdminBillingRefundsClawbacksGet(requestParameters?: ApiV1AdminBillingRefundsClawbacksGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1AdminBillingRefundsClawbacksGet200Response>;
|
|
238
|
+
/**
|
|
239
|
+
* Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
|
|
168
240
|
* Refund a payment (30-day age limit; reverses credits proportionally)
|
|
169
241
|
*/
|
|
170
242
|
apiV1AdminBillingRefundsPostRaw(requestParameters: ApiV1AdminBillingRefundsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
171
243
|
/**
|
|
244
|
+
* Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
|
|
172
245
|
* Refund a payment (30-day age limit; reverses credits proportionally)
|
|
173
246
|
*/
|
|
174
247
|
apiV1AdminBillingRefundsPost(requestParameters: ApiV1AdminBillingRefundsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
|
|
250
|
+
* Preview a refund without issuing it (dry run)
|
|
251
|
+
*/
|
|
252
|
+
apiV1AdminBillingRefundsPreviewPostRaw(requestParameters: ApiV1AdminBillingRefundsPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1AdminBillingRefundsPreviewPost200Response>>;
|
|
253
|
+
/**
|
|
254
|
+
* Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
|
|
255
|
+
* Preview a refund without issuing it (dry run)
|
|
256
|
+
*/
|
|
257
|
+
apiV1AdminBillingRefundsPreviewPost(requestParameters: ApiV1AdminBillingRefundsPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1AdminBillingRefundsPreviewPost200Response>;
|
|
175
258
|
/**
|
|
176
259
|
* Schedule cancellation at period end (admin)
|
|
177
260
|
*/
|
|
@@ -248,3 +331,11 @@ export declare const ApiV1AdminBillingMetricsGetPeriodEnum: {
|
|
|
248
331
|
readonly Year: "year";
|
|
249
332
|
};
|
|
250
333
|
export type ApiV1AdminBillingMetricsGetPeriodEnum = typeof ApiV1AdminBillingMetricsGetPeriodEnum[keyof typeof ApiV1AdminBillingMetricsGetPeriodEnum];
|
|
334
|
+
/**
|
|
335
|
+
* @export
|
|
336
|
+
*/
|
|
337
|
+
export declare const ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum: {
|
|
338
|
+
readonly User: "user";
|
|
339
|
+
readonly Organization: "organization";
|
|
340
|
+
};
|
|
341
|
+
export type ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = typeof ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum[keyof typeof ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum];
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ApiV1AdminBillingMetricsGetPeriodEnum = exports.ApiV1AdminBillingAuditGetSubjectTypeEnum = exports.AdminBillingApi = void 0;
|
|
25
|
+
exports.ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = exports.ApiV1AdminBillingMetricsGetPeriodEnum = exports.ApiV1AdminBillingAuditGetSubjectTypeEnum = exports.AdminBillingApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -134,6 +134,45 @@ class AdminBillingApi extends runtime.BaseAPI {
|
|
|
134
134
|
yield this.apiV1AdminBillingDashboardGetRaw(initOverrides);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
|
|
139
|
+
* Open dispute seat-suspensions, for the admin billing console
|
|
140
|
+
*/
|
|
141
|
+
apiV1AdminBillingDisputesGetRaw(requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const queryParameters = {};
|
|
144
|
+
if (requestParameters['page'] != null) {
|
|
145
|
+
queryParameters['page'] = requestParameters['page'];
|
|
146
|
+
}
|
|
147
|
+
if (requestParameters['size'] != null) {
|
|
148
|
+
queryParameters['size'] = requestParameters['size'];
|
|
149
|
+
}
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = yield token("bearerAuth", []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const response = yield this.request({
|
|
159
|
+
path: `/api/v1/admin-billing/disputes`,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.VoidApiResponse(response);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
|
|
169
|
+
* Open dispute seat-suspensions, for the admin billing console
|
|
170
|
+
*/
|
|
171
|
+
apiV1AdminBillingDisputesGet() {
|
|
172
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
173
|
+
yield this.apiV1AdminBillingDisputesGetRaw(requestParameters, initOverrides);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
137
176
|
/**
|
|
138
177
|
* Expire admin grants past their expiry date (deduct remaining balance)
|
|
139
178
|
*/
|
|
@@ -410,6 +449,118 @@ class AdminBillingApi extends runtime.BaseAPI {
|
|
|
410
449
|
yield this.apiV1AdminBillingPartnerPartnerIdInvoicePostRaw(requestParameters, initOverrides);
|
|
411
450
|
});
|
|
412
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
|
|
454
|
+
* Fill in the plan price ids from the catalogue (dry run by default)
|
|
455
|
+
*/
|
|
456
|
+
apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters, initOverrides) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
const queryParameters = {};
|
|
459
|
+
const headerParameters = {};
|
|
460
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
461
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
462
|
+
const token = this.configuration.accessToken;
|
|
463
|
+
const tokenString = yield token("bearerAuth", []);
|
|
464
|
+
if (tokenString) {
|
|
465
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const response = yield this.request({
|
|
469
|
+
path: `/api/v1/admin-billing/plans/prices/backfill`,
|
|
470
|
+
method: 'POST',
|
|
471
|
+
headers: headerParameters,
|
|
472
|
+
query: queryParameters,
|
|
473
|
+
body: (0, index_1.ApiV1AdminBillingPlansPricesBackfillPostRequestToJSON)(requestParameters['apiV1AdminBillingPlansPricesBackfillPostRequest']),
|
|
474
|
+
}, initOverrides);
|
|
475
|
+
return new runtime.VoidApiResponse(response);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
|
|
480
|
+
* Fill in the plan price ids from the catalogue (dry run by default)
|
|
481
|
+
*/
|
|
482
|
+
apiV1AdminBillingPlansPricesBackfillPost() {
|
|
483
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
484
|
+
yield this.apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters, initOverrides);
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
|
|
489
|
+
* Audit the stored plan price ids against the catalogue
|
|
490
|
+
*/
|
|
491
|
+
apiV1AdminBillingPlansPricesGetRaw(initOverrides) {
|
|
492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
const queryParameters = {};
|
|
494
|
+
const headerParameters = {};
|
|
495
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
496
|
+
const token = this.configuration.accessToken;
|
|
497
|
+
const tokenString = yield token("bearerAuth", []);
|
|
498
|
+
if (tokenString) {
|
|
499
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
const response = yield this.request({
|
|
503
|
+
path: `/api/v1/admin-billing/plans/prices`,
|
|
504
|
+
method: 'GET',
|
|
505
|
+
headers: headerParameters,
|
|
506
|
+
query: queryParameters,
|
|
507
|
+
}, initOverrides);
|
|
508
|
+
return new runtime.VoidApiResponse(response);
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
|
|
513
|
+
* Audit the stored plan price ids against the catalogue
|
|
514
|
+
*/
|
|
515
|
+
apiV1AdminBillingPlansPricesGet(initOverrides) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
yield this.apiV1AdminBillingPlansPricesGetRaw(initOverrides);
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
|
|
522
|
+
* Set a plan\'s Stripe price id, after verifying it bills the catalogue
|
|
523
|
+
*/
|
|
524
|
+
apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters, initOverrides) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
if (requestParameters['planType'] == null) {
|
|
527
|
+
throw new runtime.RequiredError('planType', 'Required parameter "planType" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
|
|
528
|
+
}
|
|
529
|
+
if (requestParameters['billingFrequency'] == null) {
|
|
530
|
+
throw new runtime.RequiredError('billingFrequency', 'Required parameter "billingFrequency" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
|
|
531
|
+
}
|
|
532
|
+
if (requestParameters['apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest'] == null) {
|
|
533
|
+
throw new runtime.RequiredError('apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest', 'Required parameter "apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
|
|
534
|
+
}
|
|
535
|
+
const queryParameters = {};
|
|
536
|
+
const headerParameters = {};
|
|
537
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
538
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
539
|
+
const token = this.configuration.accessToken;
|
|
540
|
+
const tokenString = yield token("bearerAuth", []);
|
|
541
|
+
if (tokenString) {
|
|
542
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
const response = yield this.request({
|
|
546
|
+
path: `/api/v1/admin-billing/plans/prices/{planType}/{billingFrequency}`.replace(`{${"planType"}}`, encodeURIComponent(String(requestParameters['planType']))).replace(`{${"billingFrequency"}}`, encodeURIComponent(String(requestParameters['billingFrequency']))),
|
|
547
|
+
method: 'PUT',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
body: (0, index_1.ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequestToJSON)(requestParameters['apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest']),
|
|
551
|
+
}, initOverrides);
|
|
552
|
+
return new runtime.VoidApiResponse(response);
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
|
|
557
|
+
* Set a plan\'s Stripe price id, after verifying it bills the catalogue
|
|
558
|
+
*/
|
|
559
|
+
apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut(requestParameters, initOverrides) {
|
|
560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
yield this.apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters, initOverrides);
|
|
562
|
+
});
|
|
563
|
+
}
|
|
413
564
|
/**
|
|
414
565
|
* Find local invoice rows missing their Stripe counterpart
|
|
415
566
|
*/
|
|
@@ -442,6 +593,53 @@ class AdminBillingApi extends runtime.BaseAPI {
|
|
|
442
593
|
});
|
|
443
594
|
}
|
|
444
595
|
/**
|
|
596
|
+
* Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
|
|
597
|
+
* Recent seat credit clawbacks (refund/chargeback reversals)
|
|
598
|
+
*/
|
|
599
|
+
apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters, initOverrides) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
const queryParameters = {};
|
|
602
|
+
if (requestParameters['subjectType'] != null) {
|
|
603
|
+
queryParameters['subjectType'] = requestParameters['subjectType'];
|
|
604
|
+
}
|
|
605
|
+
if (requestParameters['subjectId'] != null) {
|
|
606
|
+
queryParameters['subjectId'] = requestParameters['subjectId'];
|
|
607
|
+
}
|
|
608
|
+
if (requestParameters['page'] != null) {
|
|
609
|
+
queryParameters['page'] = requestParameters['page'];
|
|
610
|
+
}
|
|
611
|
+
if (requestParameters['size'] != null) {
|
|
612
|
+
queryParameters['size'] = requestParameters['size'];
|
|
613
|
+
}
|
|
614
|
+
const headerParameters = {};
|
|
615
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
616
|
+
const token = this.configuration.accessToken;
|
|
617
|
+
const tokenString = yield token("bearerAuth", []);
|
|
618
|
+
if (tokenString) {
|
|
619
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
const response = yield this.request({
|
|
623
|
+
path: `/api/v1/admin-billing/refunds/clawbacks`,
|
|
624
|
+
method: 'GET',
|
|
625
|
+
headers: headerParameters,
|
|
626
|
+
query: queryParameters,
|
|
627
|
+
}, initOverrides);
|
|
628
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1AdminBillingRefundsClawbacksGet200ResponseFromJSON)(jsonValue));
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
|
|
633
|
+
* Recent seat credit clawbacks (refund/chargeback reversals)
|
|
634
|
+
*/
|
|
635
|
+
apiV1AdminBillingRefundsClawbacksGet() {
|
|
636
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
637
|
+
const response = yield this.apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters, initOverrides);
|
|
638
|
+
return yield response.value();
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
|
|
445
643
|
* Refund a payment (30-day age limit; reverses credits proportionally)
|
|
446
644
|
*/
|
|
447
645
|
apiV1AdminBillingRefundsPostRaw(requestParameters, initOverrides) {
|
|
@@ -470,6 +668,7 @@ class AdminBillingApi extends runtime.BaseAPI {
|
|
|
470
668
|
});
|
|
471
669
|
}
|
|
472
670
|
/**
|
|
671
|
+
* Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
|
|
473
672
|
* Refund a payment (30-day age limit; reverses credits proportionally)
|
|
474
673
|
*/
|
|
475
674
|
apiV1AdminBillingRefundsPost(requestParameters, initOverrides) {
|
|
@@ -477,6 +676,45 @@ class AdminBillingApi extends runtime.BaseAPI {
|
|
|
477
676
|
yield this.apiV1AdminBillingRefundsPostRaw(requestParameters, initOverrides);
|
|
478
677
|
});
|
|
479
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
|
|
681
|
+
* Preview a refund without issuing it (dry run)
|
|
682
|
+
*/
|
|
683
|
+
apiV1AdminBillingRefundsPreviewPostRaw(requestParameters, initOverrides) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
685
|
+
if (requestParameters['apiV1AdminBillingRefundsPreviewPostRequest'] == null) {
|
|
686
|
+
throw new runtime.RequiredError('apiV1AdminBillingRefundsPreviewPostRequest', 'Required parameter "apiV1AdminBillingRefundsPreviewPostRequest" was null or undefined when calling apiV1AdminBillingRefundsPreviewPost().');
|
|
687
|
+
}
|
|
688
|
+
const queryParameters = {};
|
|
689
|
+
const headerParameters = {};
|
|
690
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
691
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
692
|
+
const token = this.configuration.accessToken;
|
|
693
|
+
const tokenString = yield token("bearerAuth", []);
|
|
694
|
+
if (tokenString) {
|
|
695
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
const response = yield this.request({
|
|
699
|
+
path: `/api/v1/admin-billing/refunds/preview`,
|
|
700
|
+
method: 'POST',
|
|
701
|
+
headers: headerParameters,
|
|
702
|
+
query: queryParameters,
|
|
703
|
+
body: (0, index_1.ApiV1AdminBillingRefundsPreviewPostRequestToJSON)(requestParameters['apiV1AdminBillingRefundsPreviewPostRequest']),
|
|
704
|
+
}, initOverrides);
|
|
705
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1AdminBillingRefundsPreviewPost200ResponseFromJSON)(jsonValue));
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
|
|
710
|
+
* Preview a refund without issuing it (dry run)
|
|
711
|
+
*/
|
|
712
|
+
apiV1AdminBillingRefundsPreviewPost(requestParameters, initOverrides) {
|
|
713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
714
|
+
const response = yield this.apiV1AdminBillingRefundsPreviewPostRaw(requestParameters, initOverrides);
|
|
715
|
+
return yield response.value();
|
|
716
|
+
});
|
|
717
|
+
}
|
|
480
718
|
/**
|
|
481
719
|
* Schedule cancellation at period end (admin)
|
|
482
720
|
*/
|
|
@@ -742,3 +980,10 @@ exports.ApiV1AdminBillingMetricsGetPeriodEnum = {
|
|
|
742
980
|
Quarter: 'quarter',
|
|
743
981
|
Year: 'year'
|
|
744
982
|
};
|
|
983
|
+
/**
|
|
984
|
+
* @export
|
|
985
|
+
*/
|
|
986
|
+
exports.ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = {
|
|
987
|
+
User: 'user',
|
|
988
|
+
Organization: 'organization'
|
|
989
|
+
};
|
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -69,12 +69,12 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
69
69
|
*/
|
|
70
70
|
agentCodeGeneratePost(requestParameters: AgentCodeGeneratePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentCodeGeneratePost202Response>;
|
|
71
71
|
/**
|
|
72
|
-
* Initiates an asynchronous code modification task using
|
|
72
|
+
* Initiates an asynchronous code modification task using Direct LLM.
|
|
73
73
|
* Modify existing code based on instructions
|
|
74
74
|
*/
|
|
75
75
|
agentCodeModifyPostRaw(requestParameters: AgentCodeModifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentCodeModifyPost202Response>>;
|
|
76
76
|
/**
|
|
77
|
-
* Initiates an asynchronous code modification task using
|
|
77
|
+
* Initiates an asynchronous code modification task using Direct LLM.
|
|
78
78
|
* Modify existing code based on instructions
|
|
79
79
|
*/
|
|
80
80
|
agentCodeModifyPost(requestParameters: AgentCodeModifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentCodeModifyPost202Response>;
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -69,7 +69,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Initiates an asynchronous code modification task using
|
|
72
|
+
* Initiates an asynchronous code modification task using Direct LLM.
|
|
73
73
|
* Modify existing code based on instructions
|
|
74
74
|
*/
|
|
75
75
|
agentCodeModifyPostRaw(requestParameters, initOverrides) {
|
|
@@ -98,7 +98,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Initiates an asynchronous code modification task using
|
|
101
|
+
* Initiates an asynchronous code modification task using Direct LLM.
|
|
102
102
|
* Modify existing code based on instructions
|
|
103
103
|
*/
|
|
104
104
|
agentCodeModifyPost(requestParameters, initOverrides) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
|
|
13
|
+
import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest, ValidateInviteCode200Response } from '../models/index';
|
|
14
14
|
export interface CompleteSignupOperationRequest {
|
|
15
15
|
completeSignupRequest: CompleteSignupRequest;
|
|
16
16
|
}
|
|
@@ -53,6 +53,9 @@ export interface UpdatePasswordOperationRequest {
|
|
|
53
53
|
export interface UpdateUserMetadataOperationRequest {
|
|
54
54
|
updateUserMetadataRequest: UpdateUserMetadataRequest;
|
|
55
55
|
}
|
|
56
|
+
export interface ValidateInviteCodeRequest {
|
|
57
|
+
code: string;
|
|
58
|
+
}
|
|
56
59
|
/**
|
|
57
60
|
*
|
|
58
61
|
*/
|
|
@@ -193,4 +196,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
193
196
|
* Update user metadata
|
|
194
197
|
*/
|
|
195
198
|
updateUserMetadata(requestParameters: UpdateUserMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* Validate an access invite code
|
|
201
|
+
*/
|
|
202
|
+
validateInviteCodeRaw(requestParameters: ValidateInviteCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateInviteCode200Response>>;
|
|
203
|
+
/**
|
|
204
|
+
* Validate an access invite code
|
|
205
|
+
*/
|
|
206
|
+
validateInviteCode(requestParameters: ValidateInviteCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateInviteCode200Response>;
|
|
196
207
|
}
|
|
@@ -545,5 +545,36 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
545
545
|
yield this.updateUserMetadataRaw(requestParameters, initOverrides);
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* Validate an access invite code
|
|
550
|
+
*/
|
|
551
|
+
validateInviteCodeRaw(requestParameters, initOverrides) {
|
|
552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
if (requestParameters['code'] == null) {
|
|
554
|
+
throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling validateInviteCode().');
|
|
555
|
+
}
|
|
556
|
+
const queryParameters = {};
|
|
557
|
+
if (requestParameters['code'] != null) {
|
|
558
|
+
queryParameters['code'] = requestParameters['code'];
|
|
559
|
+
}
|
|
560
|
+
const headerParameters = {};
|
|
561
|
+
const response = yield this.request({
|
|
562
|
+
path: `/auth/invite-code`,
|
|
563
|
+
method: 'GET',
|
|
564
|
+
headers: headerParameters,
|
|
565
|
+
query: queryParameters,
|
|
566
|
+
}, initOverrides);
|
|
567
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ValidateInviteCode200ResponseFromJSON)(jsonValue));
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Validate an access invite code
|
|
572
|
+
*/
|
|
573
|
+
validateInviteCode(requestParameters, initOverrides) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
const response = yield this.validateInviteCodeRaw(requestParameters, initOverrides);
|
|
576
|
+
return yield response.value();
|
|
577
|
+
});
|
|
578
|
+
}
|
|
548
579
|
}
|
|
549
580
|
exports.AuthenticationApi = AuthenticationApi;
|