@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
|
@@ -1529,6 +1529,43 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
1529
1529
|
return yield response.value();
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Per-member Teams allowance view for the organization\'s live billing period: what each billable member was granted, what they have spent, what they hold now, and whether they are blocked from generating. `blocked: true` covers both a member who **spent** their allowance (ordinary exhaustion — compare `used` with `periodAllowance`) and a member who **never received** it (the deliberate re-add gap the owner notice reports — `used: 0` with no or small `periodAllowance`). The two rows read differently, so the owner can tell them apart without waiting for an email. A `blocked: null` is an unreadable balance, reported as unknown rather than guessed. Rows arrive blocked-first, so a gapped member is at the top of the list. Suspended members are not listed: they hold no seat, so they are not blocked, and no payment changes that.
|
|
1534
|
+
* Show each member\'s credit allowance for the current period
|
|
1535
|
+
*/
|
|
1536
|
+
organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters, initOverrides) {
|
|
1537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1538
|
+
if (requestParameters['orgId'] == null) {
|
|
1539
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling organizationsOrgIdBillingMemberAllowancesGet().');
|
|
1540
|
+
}
|
|
1541
|
+
const queryParameters = {};
|
|
1542
|
+
const headerParameters = {};
|
|
1543
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1544
|
+
const token = this.configuration.accessToken;
|
|
1545
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1546
|
+
if (tokenString) {
|
|
1547
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
const response = yield this.request({
|
|
1551
|
+
path: `/organizations/{orgId}/billing/member-allowances`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
1552
|
+
method: 'GET',
|
|
1553
|
+
headers: headerParameters,
|
|
1554
|
+
query: queryParameters,
|
|
1555
|
+
}, initOverrides);
|
|
1556
|
+
return new runtime.JSONApiResponse(response);
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Per-member Teams allowance view for the organization\'s live billing period: what each billable member was granted, what they have spent, what they hold now, and whether they are blocked from generating. `blocked: true` covers both a member who **spent** their allowance (ordinary exhaustion — compare `used` with `periodAllowance`) and a member who **never received** it (the deliberate re-add gap the owner notice reports — `used: 0` with no or small `periodAllowance`). The two rows read differently, so the owner can tell them apart without waiting for an email. A `blocked: null` is an unreadable balance, reported as unknown rather than guessed. Rows arrive blocked-first, so a gapped member is at the top of the list. Suspended members are not listed: they hold no seat, so they are not blocked, and no payment changes that.
|
|
1561
|
+
* Show each member\'s credit allowance for the current period
|
|
1562
|
+
*/
|
|
1563
|
+
organizationsOrgIdBillingMemberAllowancesGet(requestParameters, initOverrides) {
|
|
1564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1565
|
+
const response = yield this.organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters, initOverrides);
|
|
1566
|
+
return yield response.value();
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1532
1569
|
/**
|
|
1533
1570
|
* Update organization member count with proration
|
|
1534
1571
|
*/
|
|
@@ -1867,7 +1904,7 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
1867
1904
|
});
|
|
1868
1905
|
}
|
|
1869
1906
|
/**
|
|
1870
|
-
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
|
|
1907
|
+
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration. Supplying `memberEmail` (the member being added, by email) resolves that member and runs their provisioning pass specifically, so a re-added member whose period allowance was already spent is reported to the owner at add time instead of at the next hourly audit. The response\'s `member` block carries the resolved identity and whether their seat currently holds a spendable allowance (`allowanceGap`: true gapped, false holds credits, null unknown or nobody named/resolved).
|
|
1871
1908
|
* Add member to yearly subscription
|
|
1872
1909
|
*/
|
|
1873
1910
|
organizationsOrgIdBillingYearlyMembersAddPostRaw(requestParameters, initOverrides) {
|
|
@@ -1899,7 +1936,7 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
1899
1936
|
});
|
|
1900
1937
|
}
|
|
1901
1938
|
/**
|
|
1902
|
-
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
|
|
1939
|
+
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration. Supplying `memberEmail` (the member being added, by email) resolves that member and runs their provisioning pass specifically, so a re-added member whose period allowance was already spent is reported to the owner at add time instead of at the next hourly audit. The response\'s `member` block carries the resolved identity and whether their seat currently holds a spendable allowance (`allowanceGap`: true gapped, false holds credits, null unknown or nobody named/resolved).
|
|
1903
1940
|
* Add member to yearly subscription
|
|
1904
1941
|
*/
|
|
1905
1942
|
organizationsOrgIdBillingYearlyMembersAddPost(requestParameters, initOverrides) {
|
|
@@ -1909,7 +1946,7 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
1909
1946
|
});
|
|
1910
1947
|
}
|
|
1911
1948
|
/**
|
|
1912
|
-
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
|
|
1949
|
+
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund). Supplying `memberEmail` (the member being removed, by email) names them in the accumulated-credit ledger row and in the response, so the credit the contract banks is attributable to a person. The member is resolved by account, not by membership: by the time this is called the removal has already taken their seat away, which is exactly when naming them matters. This endpoint does **not** withhold the member\'s Teams allowance — the seat-loss paths do that and report it, and this call can be a count correction for a member who stays in the organization.
|
|
1913
1950
|
* Remove member from yearly subscription
|
|
1914
1951
|
*/
|
|
1915
1952
|
organizationsOrgIdBillingYearlyMembersRemovePostRaw(requestParameters, initOverrides) {
|
|
@@ -1941,7 +1978,7 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
1941
1978
|
});
|
|
1942
1979
|
}
|
|
1943
1980
|
/**
|
|
1944
|
-
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
|
|
1981
|
+
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund). Supplying `memberEmail` (the member being removed, by email) names them in the accumulated-credit ledger row and in the response, so the credit the contract banks is attributable to a person. The member is resolved by account, not by membership: by the time this is called the removal has already taken their seat away, which is exactly when naming them matters. This endpoint does **not** withhold the member\'s Teams allowance — the seat-loss paths do that and report it, and this call can be a count correction for a member who stays in the organization.
|
|
1945
1982
|
* Remove member from yearly subscription
|
|
1946
1983
|
*/
|
|
1947
1984
|
organizationsOrgIdBillingYearlyMembersRemovePost(requestParameters, initOverrides) {
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetBillingReports200ResponseInner, NewSubscription, ProcessRefund200Response, RefundRequest, Subscription, UpdateSubscription } from '../models/index';
|
|
13
|
+
import type { ApiV1SubscriptionsIdRefundPreviewPost200Response, ApiV1SubscriptionsIdRefundPreviewPostRequest, GetBillingReports200ResponseInner, MoveSubscriptionSurfaceRequest, NewSubscription, ProcessRefund200Response, RefundRequest, Subscription, UpdateSubscription } from '../models/index';
|
|
14
|
+
export interface ApiV1SubscriptionsIdRefundPreviewPostOperationRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
apiV1SubscriptionsIdRefundPreviewPostRequest?: ApiV1SubscriptionsIdRefundPreviewPostRequest;
|
|
17
|
+
}
|
|
14
18
|
export interface CreateSubscriptionRequest {
|
|
15
19
|
newSubscription: NewSubscription;
|
|
16
20
|
}
|
|
@@ -35,9 +39,13 @@ export interface GetSubscriptionsByUserIdRequest {
|
|
|
35
39
|
limit?: number;
|
|
36
40
|
offset?: number;
|
|
37
41
|
}
|
|
42
|
+
export interface MoveSubscriptionSurfaceOperationRequest {
|
|
43
|
+
id: string;
|
|
44
|
+
moveSubscriptionSurfaceRequest: MoveSubscriptionSurfaceRequest;
|
|
45
|
+
}
|
|
38
46
|
export interface ProcessRefundRequest {
|
|
39
47
|
id: string;
|
|
40
|
-
refundRequest
|
|
48
|
+
refundRequest?: RefundRequest;
|
|
41
49
|
}
|
|
42
50
|
export interface UpdateSubscriptionRequest {
|
|
43
51
|
id: string;
|
|
@@ -47,6 +55,16 @@ export interface UpdateSubscriptionRequest {
|
|
|
47
55
|
*
|
|
48
56
|
*/
|
|
49
57
|
export declare class SubscriptionsApi extends runtime.BaseAPI {
|
|
58
|
+
/**
|
|
59
|
+
* Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
|
|
60
|
+
* Preview this subscription\'s refund without issuing it (dry run)
|
|
61
|
+
*/
|
|
62
|
+
apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters: ApiV1SubscriptionsIdRefundPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1SubscriptionsIdRefundPreviewPost200Response>>;
|
|
63
|
+
/**
|
|
64
|
+
* Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
|
|
65
|
+
* Preview this subscription\'s refund without issuing it (dry run)
|
|
66
|
+
*/
|
|
67
|
+
apiV1SubscriptionsIdRefundPreviewPost(requestParameters: ApiV1SubscriptionsIdRefundPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1SubscriptionsIdRefundPreviewPost200Response>;
|
|
50
68
|
/**
|
|
51
69
|
* Creates a new subscription. Admin only.
|
|
52
70
|
* Create subscription
|
|
@@ -108,12 +126,22 @@ export declare class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
108
126
|
*/
|
|
109
127
|
getSubscriptionsByUserId(requestParameters: GetSubscriptionsByUserIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Subscription>>;
|
|
110
128
|
/**
|
|
111
|
-
*
|
|
129
|
+
* Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
|
|
130
|
+
* Move a subscription between the personal and organization surfaces
|
|
131
|
+
*/
|
|
132
|
+
moveSubscriptionSurfaceRaw(requestParameters: MoveSubscriptionSurfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
|
|
135
|
+
* Move a subscription between the personal and organization surfaces
|
|
136
|
+
*/
|
|
137
|
+
moveSubscriptionSurface(requestParameters: MoveSubscriptionSurfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
|
|
112
140
|
* Process refund
|
|
113
141
|
*/
|
|
114
142
|
processRefundRaw(requestParameters: ProcessRefundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessRefund200Response>>;
|
|
115
143
|
/**
|
|
116
|
-
*
|
|
144
|
+
* Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
|
|
117
145
|
* Process refund
|
|
118
146
|
*/
|
|
119
147
|
processRefund(requestParameters: ProcessRefundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessRefund200Response>;
|
|
@@ -29,6 +29,45 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class SubscriptionsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
|
|
34
|
+
* Preview this subscription\'s refund without issuing it (dry run)
|
|
35
|
+
*/
|
|
36
|
+
apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['id'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SubscriptionsIdRefundPreviewPost().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = yield token("bearerAuth", []);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: `/api/v1/subscriptions/{id}/refund/preview`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
body: (0, index_1.ApiV1SubscriptionsIdRefundPreviewPostRequestToJSON)(requestParameters['apiV1SubscriptionsIdRefundPreviewPostRequest']),
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1SubscriptionsIdRefundPreviewPost200ResponseFromJSON)(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
|
|
63
|
+
* Preview this subscription\'s refund without issuing it (dry run)
|
|
64
|
+
*/
|
|
65
|
+
apiV1SubscriptionsIdRefundPreviewPost(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
32
71
|
/**
|
|
33
72
|
* Creates a new subscription. Admin only.
|
|
34
73
|
* Create subscription
|
|
@@ -271,7 +310,48 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
271
310
|
});
|
|
272
311
|
}
|
|
273
312
|
/**
|
|
274
|
-
*
|
|
313
|
+
* Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
|
|
314
|
+
* Move a subscription between the personal and organization surfaces
|
|
315
|
+
*/
|
|
316
|
+
moveSubscriptionSurfaceRaw(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
if (requestParameters['id'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling moveSubscriptionSurface().');
|
|
320
|
+
}
|
|
321
|
+
if (requestParameters['moveSubscriptionSurfaceRequest'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('moveSubscriptionSurfaceRequest', 'Required parameter "moveSubscriptionSurfaceRequest" was null or undefined when calling moveSubscriptionSurface().');
|
|
323
|
+
}
|
|
324
|
+
const queryParameters = {};
|
|
325
|
+
const headerParameters = {};
|
|
326
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
327
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
328
|
+
const token = this.configuration.accessToken;
|
|
329
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
330
|
+
if (tokenString) {
|
|
331
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
const response = yield this.request({
|
|
335
|
+
path: `/subscriptions/{id}/surface-move`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
336
|
+
method: 'POST',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
body: (0, index_1.MoveSubscriptionSurfaceRequestToJSON)(requestParameters['moveSubscriptionSurfaceRequest']),
|
|
340
|
+
}, initOverrides);
|
|
341
|
+
return new runtime.VoidApiResponse(response);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
|
|
346
|
+
* Move a subscription between the personal and organization surfaces
|
|
347
|
+
*/
|
|
348
|
+
moveSubscriptionSurface(requestParameters, initOverrides) {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
yield this.moveSubscriptionSurfaceRaw(requestParameters, initOverrides);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
|
|
275
355
|
* Process refund
|
|
276
356
|
*/
|
|
277
357
|
processRefundRaw(requestParameters, initOverrides) {
|
|
@@ -279,9 +359,6 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
279
359
|
if (requestParameters['id'] == null) {
|
|
280
360
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling processRefund().');
|
|
281
361
|
}
|
|
282
|
-
if (requestParameters['refundRequest'] == null) {
|
|
283
|
-
throw new runtime.RequiredError('refundRequest', 'Required parameter "refundRequest" was null or undefined when calling processRefund().');
|
|
284
|
-
}
|
|
285
362
|
const queryParameters = {};
|
|
286
363
|
const headerParameters = {};
|
|
287
364
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -303,7 +380,7 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
303
380
|
});
|
|
304
381
|
}
|
|
305
382
|
/**
|
|
306
|
-
*
|
|
383
|
+
* Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
|
|
307
384
|
* Process refund
|
|
308
385
|
*/
|
|
309
386
|
processRefund(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 { CheckWidgetAccess200Response, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest } from '../models/index';
|
|
13
|
+
import type { CheckWidgetAccess200Response, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest, UploadWidgetThumbnail200Response, UploadWidgetThumbnailRequest } from '../models/index';
|
|
14
14
|
export interface CheckWidgetAccessRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -64,6 +64,10 @@ export interface UpdateWidgetRepositoryOperationRequest {
|
|
|
64
64
|
id: string;
|
|
65
65
|
updateWidgetRepositoryRequest: UpdateWidgetRepositoryRequest;
|
|
66
66
|
}
|
|
67
|
+
export interface UploadWidgetThumbnailOperationRequest {
|
|
68
|
+
id: string;
|
|
69
|
+
uploadWidgetThumbnailRequest: UploadWidgetThumbnailRequest;
|
|
70
|
+
}
|
|
67
71
|
/**
|
|
68
72
|
*
|
|
69
73
|
*/
|
|
@@ -139,13 +143,13 @@ export declare class WidgetsApi extends runtime.BaseAPI {
|
|
|
139
143
|
*/
|
|
140
144
|
getWidgetDesignSchema(requestParameters: GetWidgetDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
141
145
|
/**
|
|
142
|
-
* Returns
|
|
143
|
-
* List
|
|
146
|
+
* Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
|
|
147
|
+
* List version history for a widget
|
|
144
148
|
*/
|
|
145
149
|
getWidgetPublishHistoryRaw(requestParameters: GetWidgetPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgetPublishHistory200Response>>;
|
|
146
150
|
/**
|
|
147
|
-
* Returns
|
|
148
|
-
* List
|
|
151
|
+
* Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
|
|
152
|
+
* List version history for a widget
|
|
149
153
|
*/
|
|
150
154
|
getWidgetPublishHistory(requestParameters: GetWidgetPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetPublishHistory200Response>;
|
|
151
155
|
/**
|
|
@@ -188,36 +192,6 @@ export declare class WidgetsApi extends runtime.BaseAPI {
|
|
|
188
192
|
* Update Widget
|
|
189
193
|
*/
|
|
190
194
|
updateWidget(requestParameters: UpdateWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
191
|
-
/**
|
|
192
|
-
* Stores a convert/preview screenshot as widgets.thumbnail_url.
|
|
193
|
-
* Upload Widget Thumbnail
|
|
194
|
-
*/
|
|
195
|
-
uploadWidgetThumbnailRaw(requestParameters: {
|
|
196
|
-
id: string;
|
|
197
|
-
uploadWidgetThumbnailRequest: {
|
|
198
|
-
imageDataUrl: string;
|
|
199
|
-
};
|
|
200
|
-
}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
201
|
-
data?: {
|
|
202
|
-
thumbnailUrl?: string;
|
|
203
|
-
};
|
|
204
|
-
thumbnailUrl?: string;
|
|
205
|
-
}>>;
|
|
206
|
-
/**
|
|
207
|
-
* Stores a convert/preview screenshot as widgets.thumbnail_url.
|
|
208
|
-
* Upload Widget Thumbnail
|
|
209
|
-
*/
|
|
210
|
-
uploadWidgetThumbnail(requestParameters: {
|
|
211
|
-
id: string;
|
|
212
|
-
uploadWidgetThumbnailRequest: {
|
|
213
|
-
imageDataUrl: string;
|
|
214
|
-
};
|
|
215
|
-
}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
216
|
-
data?: {
|
|
217
|
-
thumbnailUrl?: string;
|
|
218
|
-
};
|
|
219
|
-
thumbnailUrl?: string;
|
|
220
|
-
}>;
|
|
221
195
|
/**
|
|
222
196
|
* Associates an existing widget with a repository ID.
|
|
223
197
|
* Update Widget Repository
|
|
@@ -228,6 +202,16 @@ export declare class WidgetsApi extends runtime.BaseAPI {
|
|
|
228
202
|
* Update Widget Repository
|
|
229
203
|
*/
|
|
230
204
|
updateWidgetRepository(requestParameters: UpdateWidgetRepositoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateWidgetRepository200Response>;
|
|
205
|
+
/**
|
|
206
|
+
* Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
|
|
207
|
+
* Upload Widget Thumbnail
|
|
208
|
+
*/
|
|
209
|
+
uploadWidgetThumbnailRaw(requestParameters: UploadWidgetThumbnailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadWidgetThumbnail200Response>>;
|
|
210
|
+
/**
|
|
211
|
+
* Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
|
|
212
|
+
* Upload Widget Thumbnail
|
|
213
|
+
*/
|
|
214
|
+
uploadWidgetThumbnail(requestParameters: UploadWidgetThumbnailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadWidgetThumbnail200Response>;
|
|
231
215
|
}
|
|
232
216
|
/**
|
|
233
217
|
* @export
|
package/dist/apis/WidgetsApi.js
CHANGED
|
@@ -300,8 +300,8 @@ class WidgetsApi extends runtime.BaseAPI {
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
* Returns
|
|
304
|
-
* List
|
|
303
|
+
* Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
|
|
304
|
+
* List version history for a widget
|
|
305
305
|
*/
|
|
306
306
|
getWidgetPublishHistoryRaw(requestParameters, initOverrides) {
|
|
307
307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -327,8 +327,8 @@ class WidgetsApi extends runtime.BaseAPI {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
* Returns
|
|
331
|
-
* List
|
|
330
|
+
* Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
|
|
331
|
+
* List version history for a widget
|
|
332
332
|
*/
|
|
333
333
|
getWidgetPublishHistory(requestParameters, initOverrides) {
|
|
334
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -521,16 +521,16 @@ class WidgetsApi extends runtime.BaseAPI {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
-
*
|
|
525
|
-
*
|
|
524
|
+
* Associates an existing widget with a repository ID.
|
|
525
|
+
* Update Widget Repository
|
|
526
526
|
*/
|
|
527
|
-
|
|
527
|
+
updateWidgetRepositoryRaw(requestParameters, initOverrides) {
|
|
528
528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
529
529
|
if (requestParameters['id'] == null) {
|
|
530
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
530
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateWidgetRepository().');
|
|
531
531
|
}
|
|
532
|
-
if (requestParameters['
|
|
533
|
-
throw new runtime.RequiredError('
|
|
532
|
+
if (requestParameters['updateWidgetRepositoryRequest'] == null) {
|
|
533
|
+
throw new runtime.RequiredError('updateWidgetRepositoryRequest', 'Required parameter "updateWidgetRepositoryRequest" was null or undefined when calling updateWidgetRepository().');
|
|
534
534
|
}
|
|
535
535
|
const queryParameters = {};
|
|
536
536
|
const headerParameters = {};
|
|
@@ -543,36 +543,36 @@ class WidgetsApi extends runtime.BaseAPI {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
const response = yield this.request({
|
|
546
|
-
path: `/widgets/{id}/
|
|
547
|
-
method: '
|
|
546
|
+
path: `/widgets/{id}/repository`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
547
|
+
method: 'PUT',
|
|
548
548
|
headers: headerParameters,
|
|
549
549
|
query: queryParameters,
|
|
550
|
-
body: requestParameters['
|
|
550
|
+
body: (0, index_1.UpdateWidgetRepositoryRequestToJSON)(requestParameters['updateWidgetRepositoryRequest']),
|
|
551
551
|
}, initOverrides);
|
|
552
|
-
return new runtime.JSONApiResponse(response);
|
|
552
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UpdateWidgetRepository200ResponseFromJSON)(jsonValue));
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
/**
|
|
556
|
-
*
|
|
557
|
-
*
|
|
556
|
+
* Associates an existing widget with a repository ID.
|
|
557
|
+
* Update Widget Repository
|
|
558
558
|
*/
|
|
559
|
-
|
|
559
|
+
updateWidgetRepository(requestParameters, initOverrides) {
|
|
560
560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
-
const response = yield this.
|
|
561
|
+
const response = yield this.updateWidgetRepositoryRaw(requestParameters, initOverrides);
|
|
562
562
|
return yield response.value();
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
/**
|
|
566
|
-
*
|
|
567
|
-
*
|
|
566
|
+
* Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
|
|
567
|
+
* Upload Widget Thumbnail
|
|
568
568
|
*/
|
|
569
|
-
|
|
569
|
+
uploadWidgetThumbnailRaw(requestParameters, initOverrides) {
|
|
570
570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
571
571
|
if (requestParameters['id'] == null) {
|
|
572
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
572
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadWidgetThumbnail().');
|
|
573
573
|
}
|
|
574
|
-
if (requestParameters['
|
|
575
|
-
throw new runtime.RequiredError('
|
|
574
|
+
if (requestParameters['uploadWidgetThumbnailRequest'] == null) {
|
|
575
|
+
throw new runtime.RequiredError('uploadWidgetThumbnailRequest', 'Required parameter "uploadWidgetThumbnailRequest" was null or undefined when calling uploadWidgetThumbnail().');
|
|
576
576
|
}
|
|
577
577
|
const queryParameters = {};
|
|
578
578
|
const headerParameters = {};
|
|
@@ -585,22 +585,22 @@ class WidgetsApi extends runtime.BaseAPI {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
const response = yield this.request({
|
|
588
|
-
path: `/widgets/{id}/
|
|
589
|
-
method: '
|
|
588
|
+
path: `/widgets/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
589
|
+
method: 'POST',
|
|
590
590
|
headers: headerParameters,
|
|
591
591
|
query: queryParameters,
|
|
592
|
-
body: (0, index_1.
|
|
592
|
+
body: (0, index_1.UploadWidgetThumbnailRequestToJSON)(requestParameters['uploadWidgetThumbnailRequest']),
|
|
593
593
|
}, initOverrides);
|
|
594
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadWidgetThumbnail200ResponseFromJSON)(jsonValue));
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
599
|
-
*
|
|
598
|
+
* Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
|
|
599
|
+
* Upload Widget Thumbnail
|
|
600
600
|
*/
|
|
601
|
-
|
|
601
|
+
uploadWidgetThumbnail(requestParameters, initOverrides) {
|
|
602
602
|
return __awaiter(this, void 0, void 0, function* () {
|
|
603
|
-
const response = yield this.
|
|
603
|
+
const response = yield this.uploadWidgetThumbnailRaw(requestParameters, initOverrides);
|
|
604
604
|
return yield response.value();
|
|
605
605
|
});
|
|
606
606
|
}
|
|
@@ -32,12 +32,12 @@ export declare class WorkflowsApi extends runtime.BaseAPI {
|
|
|
32
32
|
*/
|
|
33
33
|
workflowsGenerateComponentFromMixPost(requestParameters: WorkflowsGenerateComponentFromMixPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowAcceptedResponse>;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
|
|
36
36
|
* Initiate initial component generation workflow
|
|
37
37
|
*/
|
|
38
38
|
workflowsGenerateComponentPostRaw(requestParameters: WorkflowsGenerateComponentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowAcceptedResponse>>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
|
|
41
41
|
* Initiate initial component generation workflow
|
|
42
42
|
*/
|
|
43
43
|
workflowsGenerateComponentPost(requestParameters: WorkflowsGenerateComponentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowAcceptedResponse>;
|
|
@@ -69,7 +69,7 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
|
|
73
73
|
* Initiate initial component generation workflow
|
|
74
74
|
*/
|
|
75
75
|
workflowsGenerateComponentPostRaw(requestParameters, initOverrides) {
|
|
@@ -98,7 +98,7 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
|
|
102
102
|
* Initiate initial component generation workflow
|
|
103
103
|
*/
|
|
104
104
|
workflowsGenerateComponentPost(requestParameters, initOverrides) {
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './MCPApi';
|
|
|
28
28
|
export * from './ManagedUsersApi';
|
|
29
29
|
export * from './MessagesApi';
|
|
30
30
|
export * from './MonitoringApi';
|
|
31
|
+
export * from './NoticesApi';
|
|
31
32
|
export * from './OperationsApi';
|
|
32
33
|
export * from './OrganizationActivitiesApi';
|
|
33
34
|
export * from './OrganizationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./MCPApi"), exports);
|
|
|
46
46
|
__exportStar(require("./ManagedUsersApi"), exports);
|
|
47
47
|
__exportStar(require("./MessagesApi"), exports);
|
|
48
48
|
__exportStar(require("./MonitoringApi"), exports);
|
|
49
|
+
__exportStar(require("./NoticesApi"), exports);
|
|
49
50
|
__exportStar(require("./OperationsApi"), exports);
|
|
50
51
|
__exportStar(require("./OrganizationActivitiesApi"), exports);
|
|
51
52
|
__exportStar(require("./OrganizationsApi"), exports);
|