@widgetic/api-sdk-ts 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/CompositionsApi.d.ts +1 -0
- package/dist/apis/CompositionsApi.js +3 -0
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/ManagedUsersApi.d.ts +2 -2
- package/dist/apis/ManagedUsersApi.js +2 -2
- package/dist/apis/OrganizationsApi.d.ts +74 -0
- package/dist/apis/OrganizationsApi.js +205 -0
- package/dist/apis/PartnersApi.d.ts +8 -8
- package/dist/apis/PartnersApi.js +8 -8
- package/dist/apis/TokensApi.d.ts +2 -2
- package/dist/apis/TokensApi.js +2 -2
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/apis/UsersApi.d.ts +3 -59
- package/dist/apis/UsersApi.js +2 -150
- package/dist/apis/WidgetsApi.d.ts +2 -2
- package/dist/apis/WidgetsApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +38 -38
- package/dist/apis/WorkflowsApi.js +38 -38
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CompositionsApi.js +3 -0
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/ManagedUsersApi.js +2 -2
- package/dist/esm/apis/OrganizationsApi.js +168 -0
- package/dist/esm/apis/PartnersApi.js +8 -8
- package/dist/esm/apis/TokensApi.js +2 -2
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/UsersApi.js +3 -151
- package/dist/esm/apis/WidgetsApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.js +38 -38
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
- package/dist/esm/models/EditorSession.js +4 -0
- package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
- package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
- package/dist/esm/models/NewWidget.js +0 -1
- package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
- package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/Upload.js +2 -0
- package/dist/esm/models/UserApiKey.js +2 -0
- package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
- package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
- package/dist/esm/models/Widget.js +6 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +4 -0
- package/dist/esm/models/index.js +11 -6
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/AddOrganizationDomainResponse.js +58 -0
- package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
- package/dist/models/AddOrganizationDomainResponseData.js +51 -0
- package/dist/models/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -0
- package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
- package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
- package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
- package/dist/models/EditorSession.d.ts +7 -0
- package/dist/models/EditorSession.js +4 -0
- package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
- package/dist/models/GetOperationResponseDataMetadata.js +12 -1
- package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
- package/dist/models/GetOrganizationDomains200Response.js +58 -0
- package/dist/models/NewEditorSession.d.ts +1 -1
- package/dist/models/NewWidget.d.ts +2 -3
- package/dist/models/NewWidget.js +0 -1
- package/dist/models/OrganizationDomain.d.ts +56 -0
- package/dist/models/OrganizationDomain.js +56 -0
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
- package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
- package/dist/models/Upload.d.ts +6 -0
- package/dist/models/Upload.js +2 -0
- package/dist/models/UserApiKey.d.ts +6 -0
- package/dist/models/UserApiKey.js +2 -0
- package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
- package/dist/models/ValidateToken200ResponseData.js +3 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
- package/dist/models/Widget.d.ts +18 -0
- package/dist/models/Widget.js +6 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
- package/dist/models/WidgetClarificationQuestion.js +4 -0
- package/dist/models/WidgetCodeChange.d.ts +70 -0
- package/dist/models/WidgetCodeChange.js +76 -0
- package/dist/models/WidgetCodeChanges.d.ts +39 -0
- package/dist/models/WidgetCodeChanges.js +55 -0
- package/dist/models/WidgetNextStep.d.ts +7 -1
- package/dist/models/WidgetNextStep.js +4 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
- package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
- package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
- package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
- package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
- package/dist/models/PersonalWorkspaceDomain.js +0 -62
- package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
- package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
- package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
- package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
|
@@ -210,12 +210,12 @@ export declare class PartnersApi extends runtime.BaseAPI {
|
|
|
210
210
|
*/
|
|
211
211
|
createPartnerExtraCreditsInvoice(requestParameters: CreatePartnerExtraCreditsInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerExtraCreditsInvoiceResponse>;
|
|
212
212
|
/**
|
|
213
|
-
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so
|
|
213
|
+
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key (`wgt_prt_`) is that account\'s key, and so is a workspace key (`wdg_org_`) of the partner\'s home workspace, so either reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
214
214
|
* Find the partner you administer
|
|
215
215
|
*/
|
|
216
216
|
getMyPartnersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MyPartnersResponse>>;
|
|
217
217
|
/**
|
|
218
|
-
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so
|
|
218
|
+
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key (`wgt_prt_`) is that account\'s key, and so is a workspace key (`wdg_org_`) of the partner\'s home workspace, so either reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
219
219
|
* Find the partner you administer
|
|
220
220
|
*/
|
|
221
221
|
getMyPartners(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MyPartnersResponse>;
|
|
@@ -270,12 +270,12 @@ export declare class PartnersApi extends runtime.BaseAPI {
|
|
|
270
270
|
*/
|
|
271
271
|
getPartnerAnalyticsTopWidgets(requestParameters: GetPartnerAnalyticsTopWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerAnalyticsTopWidgetsResponse>;
|
|
272
272
|
/**
|
|
273
|
-
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
273
|
+
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the credits of the partner\'s workspace, held in the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
274
274
|
* Get comprehensive partner billing overview
|
|
275
275
|
*/
|
|
276
276
|
getPartnerBillingOverviewRaw(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerBillingOverview200Response>>;
|
|
277
277
|
/**
|
|
278
|
-
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
278
|
+
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the credits of the partner\'s workspace, held in the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
279
279
|
* Get comprehensive partner billing overview
|
|
280
280
|
*/
|
|
281
281
|
getPartnerBillingOverview(requestParameters: GetPartnerBillingOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerBillingOverview200Response>;
|
|
@@ -290,22 +290,22 @@ export declare class PartnersApi extends runtime.BaseAPI {
|
|
|
290
290
|
*/
|
|
291
291
|
getPartnerContract(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerContractResponse>;
|
|
292
292
|
/**
|
|
293
|
-
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner
|
|
293
|
+
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner\'s credits belong to its own workspace, the one that is made with the partner, and are all held in ONE account: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that workspace, and the credits a paid invoice carries are added to it, so this is the balance of the partner\'s workspace, where `getUserCreditBalance` reads the workspace the request acts in. The other workspaces its administrator may own hold credits of their own, which are not the partner\'s and are not in this balance. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
294
294
|
* Get partner credit balance
|
|
295
295
|
*/
|
|
296
296
|
getPartnerCreditBalanceRaw(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
|
|
297
297
|
/**
|
|
298
|
-
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner
|
|
298
|
+
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner\'s credits belong to its own workspace, the one that is made with the partner, and are all held in ONE account: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that workspace, and the credits a paid invoice carries are added to it, so this is the balance of the partner\'s workspace, where `getUserCreditBalance` reads the workspace the request acts in. The other workspaces its administrator may own hold credits of their own, which are not the partner\'s and are not in this balance. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
299
299
|
* Get partner credit balance
|
|
300
300
|
*/
|
|
301
301
|
getPartnerCreditBalance(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
|
|
302
302
|
/**
|
|
303
|
-
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry,
|
|
303
|
+
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the partner\'s workspace, held in the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, the credits an invoice carried arrive as `credit` entries when the invoice is paid, and the credits of a contract period that end are an `expiration` entry, so this is also how the partner\'s usage is read. It is the statement of the partner\'s workspace, where `getUserCreditTransactions` reads the workspace the request acts in; the entries of the other workspaces its administrator may own are not in it. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
304
304
|
* Get partner credit transaction history
|
|
305
305
|
*/
|
|
306
306
|
getPartnerCreditTransactionsRaw(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditTransactionListResponse>>;
|
|
307
307
|
/**
|
|
308
|
-
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry,
|
|
308
|
+
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the partner\'s workspace, held in the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, the credits an invoice carried arrive as `credit` entries when the invoice is paid, and the credits of a contract period that end are an `expiration` entry, so this is also how the partner\'s usage is read. It is the statement of the partner\'s workspace, where `getUserCreditTransactions` reads the workspace the request acts in; the entries of the other workspaces its administrator may own are not in it. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
309
309
|
* Get partner credit transaction history
|
|
310
310
|
*/
|
|
311
311
|
getPartnerCreditTransactions(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
|
package/dist/apis/PartnersApi.js
CHANGED
|
@@ -142,7 +142,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
142
142
|
return await response.value();
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so
|
|
145
|
+
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key (`wgt_prt_`) is that account\'s key, and so is a workspace key (`wdg_org_`) of the partner\'s home workspace, so either reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
146
146
|
* Find the partner you administer
|
|
147
147
|
*/
|
|
148
148
|
async getMyPartnersRaw(initOverrides) {
|
|
@@ -164,7 +164,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
164
164
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MyPartnersResponseFromJSON)(jsonValue));
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account\'s key, so
|
|
167
|
+
* Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key (`wgt_prt_`) is that account\'s key, and so is a workspace key (`wdg_org_`) of the partner\'s home workspace, so either reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
168
168
|
* Find the partner you administer
|
|
169
169
|
*/
|
|
170
170
|
async getMyPartners(initOverrides) {
|
|
@@ -388,7 +388,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
388
388
|
return await response.value();
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
|
-
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
391
|
+
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the credits of the partner\'s workspace, held in the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
392
392
|
* Get comprehensive partner billing overview
|
|
393
393
|
*/
|
|
394
394
|
async getPartnerBillingOverviewRaw(requestParameters, initOverrides) {
|
|
@@ -413,7 +413,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
413
413
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPartnerBillingOverview200ResponseFromJSON)(jsonValue));
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
|
-
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
416
|
+
* Retrieves the partner\'s credits (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the credits of the partner\'s workspace, held in the one account a partner has for its credits: the account of the person who administers it. It holds `balance` (the same balance `getPartnerCreditBalance` reads), `reservedBalance`, `availableBalance` (what a new operation can use) and `recentTransactions` (the ten newest entries of the ledger `getPartnerCreditTransactions` lists). A partner with no administrator has no account, and reads 0 and an empty list.
|
|
417
417
|
* Get comprehensive partner billing overview
|
|
418
418
|
*/
|
|
419
419
|
async getPartnerBillingOverview(requestParameters, initOverrides) {
|
|
@@ -454,7 +454,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
454
454
|
return await response.value();
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
|
-
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner
|
|
457
|
+
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner\'s credits belong to its own workspace, the one that is made with the partner, and are all held in ONE account: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that workspace, and the credits a paid invoice carries are added to it, so this is the balance of the partner\'s workspace, where `getUserCreditBalance` reads the workspace the request acts in. The other workspaces its administrator may own hold credits of their own, which are not the partner\'s and are not in this balance. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
458
458
|
* Get partner credit balance
|
|
459
459
|
*/
|
|
460
460
|
async getPartnerCreditBalanceRaw(requestParameters, initOverrides) {
|
|
@@ -479,7 +479,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
479
479
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditBalanceResponseFromJSON)(jsonValue));
|
|
480
480
|
}
|
|
481
481
|
/**
|
|
482
|
-
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner
|
|
482
|
+
* Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner\'s credits belong to its own workspace, the one that is made with the partner, and are all held in ONE account: the account of the person who administers it, the same account its API key acts as. There is nothing else to create or to fund. What its customers\' editor sessions and its own API calls spend comes out of that workspace, and the credits a paid invoice carries are added to it, so this is the balance of the partner\'s workspace, where `getUserCreditBalance` reads the workspace the request acts in. The other workspaces its administrator may own hold credits of their own, which are not the partner\'s and are not in this balance. A partner with no administrator has no account to hold credits, and reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
483
483
|
* Get partner credit balance
|
|
484
484
|
*/
|
|
485
485
|
async getPartnerCreditBalance(requestParameters, initOverrides) {
|
|
@@ -487,7 +487,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
487
487
|
return await response.value();
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
|
-
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry,
|
|
490
|
+
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the partner\'s workspace, held in the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, the credits an invoice carried arrive as `credit` entries when the invoice is paid, and the credits of a contract period that end are an `expiration` entry, so this is also how the partner\'s usage is read. It is the statement of the partner\'s workspace, where `getUserCreditTransactions` reads the workspace the request acts in; the entries of the other workspaces its administrator may own are not in it. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
491
491
|
* Get partner credit transaction history
|
|
492
492
|
*/
|
|
493
493
|
async getPartnerCreditTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -521,7 +521,7 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
521
521
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditTransactionListResponseFromJSON)(jsonValue));
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
-
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry,
|
|
524
|
+
* Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the partner\'s workspace, held in the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, the credits an invoice carried arrive as `credit` entries when the invoice is paid, and the credits of a contract period that end are an `expiration` entry, so this is also how the partner\'s usage is read. It is the statement of the partner\'s workspace, where `getUserCreditTransactions` reads the workspace the request acts in; the entries of the other workspaces its administrator may own are not in it. A partner with no administrator has no account, and an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
|
|
525
525
|
* Get partner credit transaction history
|
|
526
526
|
*/
|
|
527
527
|
async getPartnerCreditTransactions(requestParameters, initOverrides) {
|
package/dist/apis/TokensApi.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ import type { ValidateToken200Response } from '../models/index';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class TokensApi extends runtime.BaseAPI {
|
|
18
18
|
/**
|
|
19
|
-
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`)
|
|
19
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`), the account it belongs to (`userId`) and the workspace it works in (`workspace`). An API key works in the one workspace it was made for, whichever workspace its owner is looking at on widgetic.com; a signed-in session names none (`workspace` is null), and follows the workspace the person has chosen. A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]`, no `userId` and no `workspace`.
|
|
20
20
|
* Validate current authentication token
|
|
21
21
|
*/
|
|
22
22
|
validateTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateToken200Response>>;
|
|
23
23
|
/**
|
|
24
|
-
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`)
|
|
24
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`), the account it belongs to (`userId`) and the workspace it works in (`workspace`). An API key works in the one workspace it was made for, whichever workspace its owner is looking at on widgetic.com; a signed-in session names none (`workspace` is null), and follows the workspace the person has chosen. A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]`, no `userId` and no `workspace`.
|
|
25
25
|
* Validate current authentication token
|
|
26
26
|
*/
|
|
27
27
|
validateToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateToken200Response>;
|
package/dist/apis/TokensApi.js
CHANGED
|
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class TokensApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`)
|
|
57
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`), the account it belongs to (`userId`) and the workspace it works in (`workspace`). An API key works in the one workspace it was made for, whichever workspace its owner is looking at on widgetic.com; a signed-in session names none (`workspace` is null), and follows the workspace the person has chosen. A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]`, no `userId` and no `workspace`.
|
|
58
58
|
* Validate current authentication token
|
|
59
59
|
*/
|
|
60
60
|
async validateTokenRaw(initOverrides) {
|
|
@@ -79,7 +79,7 @@ class TokensApi extends runtime.BaseAPI {
|
|
|
79
79
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ValidateToken200ResponseFromJSON)(jsonValue));
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`)
|
|
82
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`), the account it belongs to (`userId`) and the workspace it works in (`workspace`). An API key works in the one workspace it was made for, whichever workspace its owner is looking at on widgetic.com; a signed-in session names none (`workspace` is null), and follows the workspace the person has chosen. A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]`, no `userId` and no `workspace`.
|
|
83
83
|
* Validate current authentication token
|
|
84
84
|
*/
|
|
85
85
|
async validateToken(initOverrides) {
|
|
@@ -35,12 +35,12 @@ export interface UploadFileRequest {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare class UploadsApi extends runtime.BaseAPI {
|
|
37
37
|
/**
|
|
38
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
38
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
39
39
|
* Delete an upload
|
|
40
40
|
*/
|
|
41
41
|
deleteUploadRaw(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUpload200Response>>;
|
|
42
42
|
/**
|
|
43
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
43
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
44
44
|
* Delete an upload
|
|
45
45
|
*/
|
|
46
46
|
deleteUpload(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUpload200Response>;
|
|
@@ -65,12 +65,12 @@ export declare class UploadsApi extends runtime.BaseAPI {
|
|
|
65
65
|
*/
|
|
66
66
|
getUploadLimits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponse>;
|
|
67
67
|
/**
|
|
68
|
-
* The files the
|
|
68
|
+
* The files of the workspace the caller works in, newest first: the workspace\'s shared files (every member\'s, and those of members who have since left). The workspace is the one a person signed in on widgetic.com switched to, or the one an API key or a connection belongs to; an editor session names none and lists the files of the account. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
69
69
|
* List the account\'s uploads
|
|
70
70
|
*/
|
|
71
71
|
listUploadsRaw(requestParameters: ListUploadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListUploads200Response>>;
|
|
72
72
|
/**
|
|
73
|
-
* The files the
|
|
73
|
+
* The files of the workspace the caller works in, newest first: the workspace\'s shared files (every member\'s, and those of members who have since left). The workspace is the one a person signed in on widgetic.com switched to, or the one an API key or a connection belongs to; an editor session names none and lists the files of the account. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
74
74
|
* List the account\'s uploads
|
|
75
75
|
*/
|
|
76
76
|
listUploads(requestParameters?: ListUploadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListUploads200Response>;
|
package/dist/apis/UploadsApi.js
CHANGED
|
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class UploadsApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
57
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
58
58
|
* Delete an upload
|
|
59
59
|
*/
|
|
60
60
|
async deleteUploadRaw(requestParameters, initOverrides) {
|
|
@@ -79,7 +79,7 @@ class UploadsApi extends runtime.BaseAPI {
|
|
|
79
79
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteUpload200ResponseFromJSON)(jsonValue));
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
82
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
83
83
|
* Delete an upload
|
|
84
84
|
*/
|
|
85
85
|
async deleteUpload(requestParameters, initOverrides) {
|
|
@@ -150,7 +150,7 @@ class UploadsApi extends runtime.BaseAPI {
|
|
|
150
150
|
return await response.value();
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
|
-
* The files the
|
|
153
|
+
* The files of the workspace the caller works in, newest first: the workspace\'s shared files (every member\'s, and those of members who have since left). The workspace is the one a person signed in on widgetic.com switched to, or the one an API key or a connection belongs to; an editor session names none and lists the files of the account. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
154
154
|
* List the account\'s uploads
|
|
155
155
|
*/
|
|
156
156
|
async listUploadsRaw(requestParameters, initOverrides) {
|
|
@@ -181,7 +181,7 @@ class UploadsApi extends runtime.BaseAPI {
|
|
|
181
181
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListUploads200ResponseFromJSON)(jsonValue));
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
|
-
* The files the
|
|
184
|
+
* The files of the workspace the caller works in, newest first: the workspace\'s shared files (every member\'s, and those of members who have since left). The workspace is the one a person signed in on widgetic.com switched to, or the one an API key or a connection belongs to; an editor session names none and lists the files of the account. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
185
185
|
* List the account\'s uploads
|
|
186
186
|
*/
|
|
187
187
|
async listUploads(requestParameters = {}, initOverrides) {
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -10,11 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdapterConnectionListResponse, AdapterConnectionRemovalResponse, AdapterConnectionResponse,
|
|
14
|
-
export interface AddPersonalWorkspaceDomainRequest {
|
|
15
|
-
id: string;
|
|
16
|
-
addDomainRequest: AddDomainRequest;
|
|
17
|
-
}
|
|
13
|
+
import type { AdapterConnectionListResponse, AdapterConnectionRemovalResponse, AdapterConnectionResponse, ConfirmAdapterConnectionRequest, CreateUserApiKeyRequest, CreatedUserApiKeyResponse, DeleteUserApiKeyResponse, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, SetAdapterConnectionRequest, UpdateUserApiKeyRequest, UserApiKeyResponse } from '../models/index';
|
|
18
14
|
export interface ConfirmUserAdapterConnectionRequest {
|
|
19
15
|
userId: string;
|
|
20
16
|
adapterId: string;
|
|
@@ -26,17 +22,10 @@ export interface CreateUserApiKeyOperationRequest {
|
|
|
26
22
|
idempotencyKey: string;
|
|
27
23
|
createUserApiKeyRequest: CreateUserApiKeyRequest;
|
|
28
24
|
}
|
|
29
|
-
export interface DeletePersonalWorkspaceDomainRequest {
|
|
30
|
-
id: string;
|
|
31
|
-
domainId: string;
|
|
32
|
-
}
|
|
33
25
|
export interface DeleteUserApiKeyRequest {
|
|
34
26
|
id: string;
|
|
35
27
|
keyId: string;
|
|
36
28
|
}
|
|
37
|
-
export interface GetPersonalWorkspaceDomainsRequest {
|
|
38
|
-
id: string;
|
|
39
|
-
}
|
|
40
29
|
export interface GetUserAdapterConnectionsRequest {
|
|
41
30
|
userId: string;
|
|
42
31
|
}
|
|
@@ -59,11 +48,6 @@ export interface SetUserAdapterConnectionRequest {
|
|
|
59
48
|
credentialKey: string;
|
|
60
49
|
setAdapterConnectionRequest: SetAdapterConnectionRequest;
|
|
61
50
|
}
|
|
62
|
-
export interface UpdatePersonalWorkspaceDomainRequest {
|
|
63
|
-
id: string;
|
|
64
|
-
domainId: string;
|
|
65
|
-
updateDomainRequest: UpdateDomainRequest;
|
|
66
|
-
}
|
|
67
51
|
export interface UpdateUserApiKeyOperationRequest {
|
|
68
52
|
id: string;
|
|
69
53
|
keyId: string;
|
|
@@ -73,16 +57,6 @@ export interface UpdateUserApiKeyOperationRequest {
|
|
|
73
57
|
*
|
|
74
58
|
*/
|
|
75
59
|
export declare class UsersApi extends runtime.BaseAPI {
|
|
76
|
-
/**
|
|
77
|
-
* Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
|
|
78
|
-
* Allow a website to show your widgets
|
|
79
|
-
*/
|
|
80
|
-
addPersonalWorkspaceDomainRaw(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
|
|
81
|
-
/**
|
|
82
|
-
* Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
|
|
83
|
-
* Allow a website to show your widgets
|
|
84
|
-
*/
|
|
85
|
-
addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
|
|
86
60
|
/**
|
|
87
61
|
* Some credentials are an email address Widgetic sends a widget\'s messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one with `setUserAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
|
|
88
62
|
* Confirm an adapter address with the code that was emailed to it
|
|
@@ -94,25 +68,15 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
94
68
|
*/
|
|
95
69
|
confirmUserAdapterConnection(requestParameters: ConfirmUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdapterConnectionResponse>;
|
|
96
70
|
/**
|
|
97
|
-
* Makes a new API key for
|
|
71
|
+
* Makes a new API key for a partner (or staff) account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. A customer account does not make personal keys: a customer\'s keys are workspace keys, made in Settings, under API keys, for one workspace. They take the same presets and scopes as the ones below. A request for a customer account is refused with 403 and the code `PERSONAL_API_KEY_RETIRED`. A personal key a customer made before workspace keys replaced them keeps working until it is deleted or expires, and can still be listed, renamed, switched off and deleted here. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. A partner or staff account has no limit on how many keys it holds, and its keys name no workspace: they act as the account.
|
|
98
72
|
* Create an API key
|
|
99
73
|
*/
|
|
100
74
|
createUserApiKeyRaw(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedUserApiKeyResponse>>;
|
|
101
75
|
/**
|
|
102
|
-
* Makes a new API key for
|
|
76
|
+
* Makes a new API key for a partner (or staff) account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. A customer account does not make personal keys: a customer\'s keys are workspace keys, made in Settings, under API keys, for one workspace. They take the same presets and scopes as the ones below. A request for a customer account is refused with 403 and the code `PERSONAL_API_KEY_RETIRED`. A personal key a customer made before workspace keys replaced them keeps working until it is deleted or expires, and can still be listed, renamed, switched off and deleted here. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. A partner or staff account has no limit on how many keys it holds, and its keys name no workspace: they act as the account.
|
|
103
77
|
* Create an API key
|
|
104
78
|
*/
|
|
105
79
|
createUserApiKey(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedUserApiKeyResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
|
|
108
|
-
* Stop allowing a website to show your widgets
|
|
109
|
-
*/
|
|
110
|
-
deletePersonalWorkspaceDomainRaw(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletePersonalWorkspaceDomainResponse>>;
|
|
111
|
-
/**
|
|
112
|
-
* Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
|
|
113
|
-
* Stop allowing a website to show your widgets
|
|
114
|
-
*/
|
|
115
|
-
deletePersonalWorkspaceDomain(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletePersonalWorkspaceDomainResponse>;
|
|
116
80
|
/**
|
|
117
81
|
* Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
|
|
118
82
|
* Delete an API key
|
|
@@ -123,16 +87,6 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
123
87
|
* Delete an API key
|
|
124
88
|
*/
|
|
125
89
|
deleteUserApiKey(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserApiKeyResponse>;
|
|
126
|
-
/**
|
|
127
|
-
* Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
|
|
128
|
-
* List the websites allowed to show your widgets
|
|
129
|
-
*/
|
|
130
|
-
getPersonalWorkspaceDomainsRaw(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPersonalWorkspaceDomains200Response>>;
|
|
131
|
-
/**
|
|
132
|
-
* Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
|
|
133
|
-
* List the websites allowed to show your widgets
|
|
134
|
-
*/
|
|
135
|
-
getPersonalWorkspaceDomains(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPersonalWorkspaceDomains200Response>;
|
|
136
90
|
/**
|
|
137
91
|
* Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
|
|
138
92
|
* See which adapter keys an account has connected
|
|
@@ -183,16 +137,6 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
183
137
|
* Connect an adapter key to an account
|
|
184
138
|
*/
|
|
185
139
|
setUserAdapterConnection(requestParameters: SetUserAdapterConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdapterConnectionResponse>;
|
|
186
|
-
/**
|
|
187
|
-
* Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
|
|
188
|
-
* Change a website on your list
|
|
189
|
-
*/
|
|
190
|
-
updatePersonalWorkspaceDomainRaw(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResultResponse>>;
|
|
191
|
-
/**
|
|
192
|
-
* Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
|
|
193
|
-
* Change a website on your list
|
|
194
|
-
*/
|
|
195
|
-
updatePersonalWorkspaceDomain(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResultResponse>;
|
|
196
140
|
/**
|
|
197
141
|
* Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
|
|
198
142
|
* Rename an API key, or switch it off or on
|