@widgetic/api-sdk 1.0.21 → 1.0.23
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 +54 -0
- package/dist/esm/models/GenerateCodeRequest.js +18 -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 +12 -0
- package/dist/esm/models/SignupUserRequest.js +4 -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 +54 -0
- package/dist/models/GenerateCodeRequest.js +18 -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 +12 -0
- package/dist/models/SignupUserRequest.js +4 -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
|
@@ -34,7 +34,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
34
34
|
const queryParameters = {};
|
|
35
35
|
const headerParameters = {};
|
|
36
36
|
const response = yield this.request({
|
|
37
|
-
path: `/
|
|
37
|
+
path: `/billing/pricing`,
|
|
38
38
|
method: 'GET',
|
|
39
39
|
headers: headerParameters,
|
|
40
40
|
query: queryParameters,
|
|
@@ -72,7 +72,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
const response = yield this.request({
|
|
75
|
-
path: `/
|
|
75
|
+
path: `/billing/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
76
76
|
method: 'GET',
|
|
77
77
|
headers: headerParameters,
|
|
78
78
|
query: queryParameters,
|
|
@@ -107,7 +107,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
const response = yield this.request({
|
|
110
|
-
path: `/
|
|
110
|
+
path: `/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
111
111
|
method: 'GET',
|
|
112
112
|
headers: headerParameters,
|
|
113
113
|
query: queryParameters,
|
|
@@ -145,7 +145,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
const response = yield this.request({
|
|
148
|
-
path: `/
|
|
148
|
+
path: `/billing/users/{userId}/payment-methods/{paymentMethodId}/default`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
|
|
149
149
|
method: 'PUT',
|
|
150
150
|
headers: headerParameters,
|
|
151
151
|
query: queryParameters,
|
|
@@ -183,7 +183,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
const response = yield this.request({
|
|
186
|
-
path: `/
|
|
186
|
+
path: `/billing/users/{userId}/payment-methods/{paymentMethodId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
|
|
187
187
|
method: 'DELETE',
|
|
188
188
|
headers: headerParameters,
|
|
189
189
|
query: queryParameters,
|
|
@@ -222,7 +222,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
const response = yield this.request({
|
|
225
|
-
path: `/
|
|
225
|
+
path: `/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
226
226
|
method: 'POST',
|
|
227
227
|
headers: headerParameters,
|
|
228
228
|
query: queryParameters,
|
|
@@ -258,7 +258,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
const response = yield this.request({
|
|
261
|
-
path: `/
|
|
261
|
+
path: `/billing/users/{userId}/payment-methods/setup-intent`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
262
262
|
method: 'POST',
|
|
263
263
|
headers: headerParameters,
|
|
264
264
|
query: queryParameters,
|
|
@@ -294,7 +294,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
const response = yield this.request({
|
|
297
|
-
path: `/
|
|
297
|
+
path: `/billing/users/{userId}/portal`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
298
298
|
method: 'POST',
|
|
299
299
|
headers: headerParameters,
|
|
300
300
|
query: queryParameters,
|
|
@@ -331,7 +331,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
const response = yield this.request({
|
|
334
|
-
path: `/
|
|
334
|
+
path: `/billing/users/{userId}/subscription/cancel`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
335
335
|
method: 'POST',
|
|
336
336
|
headers: headerParameters,
|
|
337
337
|
query: queryParameters,
|
|
@@ -367,7 +367,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
const response = yield this.request({
|
|
370
|
-
path: `/
|
|
370
|
+
path: `/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
371
371
|
method: 'GET',
|
|
372
372
|
headers: headerParameters,
|
|
373
373
|
query: queryParameters,
|
|
@@ -402,7 +402,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
const response = yield this.request({
|
|
405
|
-
path: `/
|
|
405
|
+
path: `/billing/users/{userId}/subscription/pay`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
406
406
|
method: 'POST',
|
|
407
407
|
headers: headerParameters,
|
|
408
408
|
query: queryParameters,
|
|
@@ -441,7 +441,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
const response = yield this.request({
|
|
444
|
-
path: `/
|
|
444
|
+
path: `/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
445
445
|
method: 'POST',
|
|
446
446
|
headers: headerParameters,
|
|
447
447
|
query: queryParameters,
|
|
@@ -477,7 +477,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
const response = yield this.request({
|
|
480
|
-
path: `/
|
|
480
|
+
path: `/billing/users/{userId}/subscription/resume`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
481
481
|
method: 'POST',
|
|
482
482
|
headers: headerParameters,
|
|
483
483
|
query: queryParameters,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CheckCompositionAccess200Response, Composition, CompositionVersion, CreateComposition201Response, DuplicateComposition202Response, DuplicateCompositionRequest, GetAllCompositions200Response, GetCompositionContentSchema200Response, GetCompositionDesignSchema200Response, GetCompositionsBatch200Response, GetCompositionsBatchRequest, NewComposition, SetDynamicContent200Response, SetDynamicContentRequest,
|
|
13
|
+
import type { CheckCompositionAccess200Response, Composition, CompositionVersion, CreateComposition201Response, DuplicateComposition202Response, DuplicateCompositionRequest, GetAllCompositions200Response, GetCompositionContentSchema200Response, GetCompositionDesignSchema200Response, GetCompositionsBatch200Response, GetCompositionsBatchRequest, NewComposition, SetDynamicContent200Response, SetDynamicContentRequest, UpdateComposition, UpdateCompositionStatusRequest, ValidateCompositionContent200Response } from '../models/index';
|
|
14
14
|
export interface CheckCompositionAccessRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -81,9 +81,9 @@ export interface SetDynamicContentOperationRequest {
|
|
|
81
81
|
id: string;
|
|
82
82
|
setDynamicContentRequest: SetDynamicContentRequest;
|
|
83
83
|
}
|
|
84
|
-
export interface
|
|
84
|
+
export interface UpdateCompositionRequest {
|
|
85
85
|
id: string;
|
|
86
|
-
|
|
86
|
+
updateComposition: UpdateComposition;
|
|
87
87
|
}
|
|
88
88
|
export interface UpdateCompositionDatabaseRecordRequest {
|
|
89
89
|
id: string;
|
|
@@ -287,12 +287,12 @@ export declare class CompositionsApi extends runtime.BaseAPI {
|
|
|
287
287
|
* Updates a specific composition.
|
|
288
288
|
* Update Composition
|
|
289
289
|
*/
|
|
290
|
-
updateCompositionRaw(requestParameters:
|
|
290
|
+
updateCompositionRaw(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateComposition201Response>>;
|
|
291
291
|
/**
|
|
292
292
|
* Updates a specific composition.
|
|
293
293
|
* Update Composition
|
|
294
294
|
*/
|
|
295
|
-
updateComposition(requestParameters:
|
|
295
|
+
updateComposition(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateComposition201Response>;
|
|
296
296
|
/**
|
|
297
297
|
* Updates a specific record in a table in the composition\'s database.
|
|
298
298
|
* Update Record In Composition Database
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { CheckCompositionAccess200ResponseFromJSON, CompositionFromJSON, CompositionVersionFromJSON, CreateComposition201ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionsBatch200ResponseFromJSON, GetCompositionsBatchRequestToJSON, NewCompositionToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON,
|
|
24
|
+
import { CheckCompositionAccess200ResponseFromJSON, CompositionFromJSON, CompositionVersionFromJSON, CreateComposition201ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionsBatch200ResponseFromJSON, GetCompositionsBatchRequestToJSON, NewCompositionToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContent200ResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -751,8 +751,8 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
751
751
|
if (requestParameters['id'] == null) {
|
|
752
752
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
|
|
753
753
|
}
|
|
754
|
-
if (requestParameters['
|
|
755
|
-
throw new runtime.RequiredError('
|
|
754
|
+
if (requestParameters['updateComposition'] == null) {
|
|
755
|
+
throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
|
|
756
756
|
}
|
|
757
757
|
const queryParameters = {};
|
|
758
758
|
const headerParameters = {};
|
|
@@ -769,7 +769,7 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
769
769
|
method: 'PUT',
|
|
770
770
|
headers: headerParameters,
|
|
771
771
|
query: queryParameters,
|
|
772
|
-
body:
|
|
772
|
+
body: UpdateCompositionToJSON(requestParameters['updateComposition']),
|
|
773
773
|
}, initOverrides);
|
|
774
774
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateComposition201ResponseFromJSON(jsonValue));
|
|
775
775
|
});
|
|
@@ -34,12 +34,12 @@ export interface SubtractCreditsRequest {
|
|
|
34
34
|
*/
|
|
35
35
|
export declare class CreditsApi extends runtime.BaseAPI {
|
|
36
36
|
/**
|
|
37
|
-
* Adds credits to a user\'s balance. Admin only.
|
|
37
|
+
* Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
|
|
38
38
|
* Add credits to user balance
|
|
39
39
|
*/
|
|
40
40
|
addCreditsRaw(requestParameters: AddCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
41
41
|
/**
|
|
42
|
-
* Adds credits to a user\'s balance. Admin only.
|
|
42
|
+
* Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
|
|
43
43
|
* Add credits to user balance
|
|
44
44
|
*/
|
|
45
45
|
addCredits(requestParameters: AddCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
@@ -74,12 +74,12 @@ export declare class CreditsApi extends runtime.BaseAPI {
|
|
|
74
74
|
*/
|
|
75
75
|
getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<object>>;
|
|
76
76
|
/**
|
|
77
|
-
* Subtracts credits from a user\'s balance. Admin only.
|
|
77
|
+
* Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
|
|
78
78
|
* Subtract credits from user balance
|
|
79
79
|
*/
|
|
80
80
|
subtractCreditsRaw(requestParameters: SubtractCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
81
81
|
/**
|
|
82
|
-
* Subtracts credits from a user\'s balance. Admin only.
|
|
82
|
+
* Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
|
|
83
83
|
* Subtract credits from user balance
|
|
84
84
|
*/
|
|
85
85
|
subtractCredits(requestParameters: SubtractCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
@@ -26,7 +26,7 @@ import * as runtime from '../runtime.js';
|
|
|
26
26
|
*/
|
|
27
27
|
export class CreditsApi extends runtime.BaseAPI {
|
|
28
28
|
/**
|
|
29
|
-
* Adds credits to a user\'s balance. Admin only.
|
|
29
|
+
* Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
|
|
30
30
|
* Add credits to user balance
|
|
31
31
|
*/
|
|
32
32
|
addCreditsRaw(requestParameters, initOverrides) {
|
|
@@ -55,7 +55,7 @@ export class CreditsApi extends runtime.BaseAPI {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Adds credits to a user\'s balance. Admin only.
|
|
58
|
+
* Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
|
|
59
59
|
* Add credits to user balance
|
|
60
60
|
*/
|
|
61
61
|
addCredits(requestParameters, initOverrides) {
|
|
@@ -188,7 +188,7 @@ export class CreditsApi extends runtime.BaseAPI {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
|
-
* Subtracts credits from a user\'s balance. Admin only.
|
|
191
|
+
* Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
|
|
192
192
|
* Subtract credits from user balance
|
|
193
193
|
*/
|
|
194
194
|
subtractCreditsRaw(requestParameters, initOverrides) {
|
|
@@ -217,7 +217,7 @@ export class CreditsApi extends runtime.BaseAPI {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Subtracts credits from a user\'s balance. Admin only.
|
|
220
|
+
* Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
|
|
221
221
|
* Subtract credits from user balance
|
|
222
222
|
*/
|
|
223
223
|
subtractCredits(requestParameters, initOverrides) {
|
|
@@ -30,32 +30,32 @@ export interface McpInternalWidgeticSseMessagesPostRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
export declare class MCPApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
33
|
+
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
34
34
|
* MCP Endpoint for Component Registry Tools
|
|
35
35
|
*/
|
|
36
36
|
mcpComponentRegistryPostRaw(requestParameters: McpComponentRegistryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
37
37
|
/**
|
|
38
|
-
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
38
|
+
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
39
39
|
* MCP Endpoint for Component Registry Tools
|
|
40
40
|
*/
|
|
41
41
|
mcpComponentRegistryPost(requestParameters: McpComponentRegistryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
42
42
|
/**
|
|
43
|
-
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
43
|
+
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
44
44
|
* MCP Endpoint for Console Log Tools
|
|
45
45
|
*/
|
|
46
46
|
mcpConsolePostRaw(requestParameters: McpConsolePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
47
47
|
/**
|
|
48
|
-
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
48
|
+
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
49
49
|
* MCP Endpoint for Console Log Tools
|
|
50
50
|
*/
|
|
51
51
|
mcpConsolePost(requestParameters: McpConsolePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
52
52
|
/**
|
|
53
|
-
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
53
|
+
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
54
54
|
* MCP Endpoint for CPG Tools
|
|
55
55
|
*/
|
|
56
56
|
mcpCpgPostRaw(requestParameters: McpCpgPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
57
57
|
/**
|
|
58
|
-
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
58
|
+
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
59
59
|
* MCP Endpoint for CPG Tools
|
|
60
60
|
*/
|
|
61
61
|
mcpCpgPost(requestParameters: McpCpgPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
package/dist/esm/apis/MCPApi.js
CHANGED
|
@@ -26,7 +26,7 @@ import * as runtime from '../runtime.js';
|
|
|
26
26
|
*/
|
|
27
27
|
export class MCPApi extends runtime.BaseAPI {
|
|
28
28
|
/**
|
|
29
|
-
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
29
|
+
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
30
30
|
* MCP Endpoint for Component Registry Tools
|
|
31
31
|
*/
|
|
32
32
|
mcpComponentRegistryPostRaw(requestParameters, initOverrides) {
|
|
@@ -37,6 +37,9 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
41
|
+
headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
42
|
+
}
|
|
40
43
|
const response = yield this.request({
|
|
41
44
|
path: `/mcp/component-registry`,
|
|
42
45
|
method: 'POST',
|
|
@@ -48,7 +51,7 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
51
|
-
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
54
|
+
* Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
52
55
|
* MCP Endpoint for Component Registry Tools
|
|
53
56
|
*/
|
|
54
57
|
mcpComponentRegistryPost(requestParameters, initOverrides) {
|
|
@@ -58,7 +61,7 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
58
61
|
});
|
|
59
62
|
}
|
|
60
63
|
/**
|
|
61
|
-
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
64
|
+
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
62
65
|
* MCP Endpoint for Console Log Tools
|
|
63
66
|
*/
|
|
64
67
|
mcpConsolePostRaw(requestParameters, initOverrides) {
|
|
@@ -69,6 +72,9 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
69
72
|
const queryParameters = {};
|
|
70
73
|
const headerParameters = {};
|
|
71
74
|
headerParameters['Content-Type'] = 'application/json';
|
|
75
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
+
headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
77
|
+
}
|
|
72
78
|
const response = yield this.request({
|
|
73
79
|
path: `/mcp/console`,
|
|
74
80
|
method: 'POST',
|
|
@@ -80,7 +86,7 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
80
86
|
});
|
|
81
87
|
}
|
|
82
88
|
/**
|
|
83
|
-
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
89
|
+
* Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
84
90
|
* MCP Endpoint for Console Log Tools
|
|
85
91
|
*/
|
|
86
92
|
mcpConsolePost(requestParameters, initOverrides) {
|
|
@@ -90,7 +96,7 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
90
96
|
});
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
|
-
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
99
|
+
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
94
100
|
* MCP Endpoint for CPG Tools
|
|
95
101
|
*/
|
|
96
102
|
mcpCpgPostRaw(requestParameters, initOverrides) {
|
|
@@ -101,6 +107,9 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
101
107
|
const queryParameters = {};
|
|
102
108
|
const headerParameters = {};
|
|
103
109
|
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
112
|
+
}
|
|
104
113
|
const response = yield this.request({
|
|
105
114
|
path: `/mcp/cpg`,
|
|
106
115
|
method: 'POST',
|
|
@@ -112,7 +121,7 @@ export class MCPApi extends runtime.BaseAPI {
|
|
|
112
121
|
});
|
|
113
122
|
}
|
|
114
123
|
/**
|
|
115
|
-
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
|
|
124
|
+
* Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
|
|
116
125
|
* MCP Endpoint for CPG Tools
|
|
117
126
|
*/
|
|
118
127
|
mcpCpgPost(requestParameters, initOverrides) {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ListAccountNotices200Response } from '../models/index';
|
|
14
|
+
export interface DismissAccountNoticeRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class NoticesApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
|
|
23
|
+
* Dismiss an account notice
|
|
24
|
+
*/
|
|
25
|
+
dismissAccountNoticeRaw(requestParameters: DismissAccountNoticeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
+
/**
|
|
27
|
+
* Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
|
|
28
|
+
* Dismiss an account notice
|
|
29
|
+
*/
|
|
30
|
+
dismissAccountNotice(requestParameters: DismissAccountNoticeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
|
|
33
|
+
* List active account notices
|
|
34
|
+
*/
|
|
35
|
+
listAccountNoticesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAccountNotices200Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
|
|
38
|
+
* List active account notices
|
|
39
|
+
*/
|
|
40
|
+
listAccountNotices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccountNotices200Response>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { ListAccountNotices200ResponseFromJSON, } from '../models/index.js';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class NoticesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
|
|
31
|
+
* Dismiss an account notice
|
|
32
|
+
*/
|
|
33
|
+
dismissAccountNoticeRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['id'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dismissAccountNotice().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/notices/{id}/dismiss`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.VoidApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
|
|
58
|
+
* Dismiss an account notice
|
|
59
|
+
*/
|
|
60
|
+
dismissAccountNotice(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
yield this.dismissAccountNoticeRaw(requestParameters, initOverrides);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
|
|
67
|
+
* List active account notices
|
|
68
|
+
*/
|
|
69
|
+
listAccountNoticesRaw(initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
const token = this.configuration.accessToken;
|
|
75
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
76
|
+
if (tokenString) {
|
|
77
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const response = yield this.request({
|
|
81
|
+
path: `/notices`,
|
|
82
|
+
method: 'GET',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
}, initOverrides);
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAccountNotices200ResponseFromJSON(jsonValue));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
|
|
91
|
+
* List active account notices
|
|
92
|
+
*/
|
|
93
|
+
listAccountNotices(initOverrides) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const response = yield this.listAccountNoticesRaw(initOverrides);
|
|
96
|
+
return yield response.value();
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -142,6 +142,9 @@ export interface OrganizationsOrgIdBillingGetRequest {
|
|
|
142
142
|
export interface OrganizationsOrgIdBillingInvoicePreviewGetRequest {
|
|
143
143
|
orgId: string;
|
|
144
144
|
}
|
|
145
|
+
export interface OrganizationsOrgIdBillingMemberAllowancesGetRequest {
|
|
146
|
+
orgId: string;
|
|
147
|
+
}
|
|
145
148
|
export interface OrganizationsOrgIdBillingMembersUpdatePostOperationRequest {
|
|
146
149
|
orgId: string;
|
|
147
150
|
organizationsOrgIdBillingMembersUpdatePostRequest: OrganizationsOrgIdBillingMembersUpdatePostRequest;
|
|
@@ -631,6 +634,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
631
634
|
* Preview next organization invoice
|
|
632
635
|
*/
|
|
633
636
|
organizationsOrgIdBillingInvoicePreviewGet(requestParameters: OrganizationsOrgIdBillingInvoicePreviewGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingInvoicePreviewGet200Response>;
|
|
637
|
+
/**
|
|
638
|
+
* 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.
|
|
639
|
+
* Show each member\'s credit allowance for the current period
|
|
640
|
+
*/
|
|
641
|
+
organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters: OrganizationsOrgIdBillingMemberAllowancesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
642
|
+
/**
|
|
643
|
+
* 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.
|
|
644
|
+
* Show each member\'s credit allowance for the current period
|
|
645
|
+
*/
|
|
646
|
+
organizationsOrgIdBillingMemberAllowancesGet(requestParameters: OrganizationsOrgIdBillingMemberAllowancesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
634
647
|
/**
|
|
635
648
|
* Update organization member count with proration
|
|
636
649
|
*/
|
|
@@ -710,22 +723,22 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
710
723
|
*/
|
|
711
724
|
organizationsOrgIdBillingYearlyDetailsGet(requestParameters: OrganizationsOrgIdBillingYearlyDetailsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
712
725
|
/**
|
|
713
|
-
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
|
|
726
|
+
* 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).
|
|
714
727
|
* Add member to yearly subscription
|
|
715
728
|
*/
|
|
716
729
|
organizationsOrgIdBillingYearlyMembersAddPostRaw(requestParameters: OrganizationsOrgIdBillingYearlyMembersAddPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
717
730
|
/**
|
|
718
|
-
* Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
|
|
731
|
+
* 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).
|
|
719
732
|
* Add member to yearly subscription
|
|
720
733
|
*/
|
|
721
734
|
organizationsOrgIdBillingYearlyMembersAddPost(requestParameters: OrganizationsOrgIdBillingYearlyMembersAddPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
722
735
|
/**
|
|
723
|
-
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
|
|
736
|
+
* 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.
|
|
724
737
|
* Remove member from yearly subscription
|
|
725
738
|
*/
|
|
726
739
|
organizationsOrgIdBillingYearlyMembersRemovePostRaw(requestParameters: OrganizationsOrgIdBillingYearlyMembersRemovePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
727
740
|
/**
|
|
728
|
-
* Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
|
|
741
|
+
* 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.
|
|
729
742
|
* Remove member from yearly subscription
|
|
730
743
|
*/
|
|
731
744
|
organizationsOrgIdBillingYearlyMembersRemovePost(requestParameters: OrganizationsOrgIdBillingYearlyMembersRemovePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|