@widgetic/api-sdk-ts 2.0.3 → 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.
Files changed (91) hide show
  1. package/dist/apis/CreditsApi.d.ts +2 -2
  2. package/dist/apis/CreditsApi.js +2 -2
  3. package/dist/apis/ManagedUsersApi.d.ts +2 -2
  4. package/dist/apis/ManagedUsersApi.js +2 -2
  5. package/dist/apis/OrganizationsApi.d.ts +74 -0
  6. package/dist/apis/OrganizationsApi.js +205 -0
  7. package/dist/apis/PartnersApi.d.ts +8 -8
  8. package/dist/apis/PartnersApi.js +8 -8
  9. package/dist/apis/TokensApi.d.ts +2 -2
  10. package/dist/apis/TokensApi.js +2 -2
  11. package/dist/apis/UploadsApi.d.ts +2 -2
  12. package/dist/apis/UploadsApi.js +2 -2
  13. package/dist/apis/UsersApi.d.ts +3 -59
  14. package/dist/apis/UsersApi.js +2 -150
  15. package/dist/apis/WidgetsApi.d.ts +2 -2
  16. package/dist/apis/WidgetsApi.js +2 -2
  17. package/dist/apis/WorkflowsApi.d.ts +38 -38
  18. package/dist/apis/WorkflowsApi.js +38 -38
  19. package/dist/apis/index.d.ts +1 -0
  20. package/dist/apis/index.js +1 -0
  21. package/dist/esm/apis/CreditsApi.js +2 -2
  22. package/dist/esm/apis/ManagedUsersApi.js +2 -2
  23. package/dist/esm/apis/OrganizationsApi.js +168 -0
  24. package/dist/esm/apis/PartnersApi.js +8 -8
  25. package/dist/esm/apis/TokensApi.js +2 -2
  26. package/dist/esm/apis/UploadsApi.js +2 -2
  27. package/dist/esm/apis/UsersApi.js +3 -151
  28. package/dist/esm/apis/WidgetsApi.js +2 -2
  29. package/dist/esm/apis/WorkflowsApi.js +38 -38
  30. package/dist/esm/apis/index.js +1 -0
  31. package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
  32. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  33. package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
  34. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  35. package/dist/esm/models/EditorSession.js +4 -0
  36. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  37. package/dist/esm/models/NewWidget.js +0 -1
  38. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  39. package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
  40. package/dist/esm/models/UserApiKey.js +2 -0
  41. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  42. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  43. package/dist/esm/models/index.js +8 -6
  44. package/dist/esm/runtime.js +1 -1
  45. package/dist/models/AccountCreditBalance.d.ts +1 -1
  46. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  47. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  48. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  49. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  50. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  51. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  52. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  53. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  54. package/dist/models/EditorSession.d.ts +7 -0
  55. package/dist/models/EditorSession.js +4 -0
  56. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  57. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  58. package/dist/models/NewEditorSession.d.ts +1 -1
  59. package/dist/models/NewWidget.d.ts +2 -3
  60. package/dist/models/NewWidget.js +0 -1
  61. package/dist/models/OrganizationDomain.d.ts +56 -0
  62. package/dist/models/OrganizationDomain.js +56 -0
  63. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  64. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  65. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  66. package/dist/models/UserApiKey.d.ts +6 -0
  67. package/dist/models/UserApiKey.js +2 -0
  68. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  69. package/dist/models/ValidateToken200ResponseData.js +3 -0
  70. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  71. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  72. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  73. package/dist/models/index.d.ts +8 -6
  74. package/dist/models/index.js +8 -6
  75. package/dist/runtime.d.ts +2 -2
  76. package/dist/runtime.js +1 -1
  77. package/package.json +1 -1
  78. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  79. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  80. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  81. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  82. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  83. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  84. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  85. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  86. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  87. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  88. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  89. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  90. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  91. package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
@@ -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 it 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.
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 it 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.
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 has ONE account for its credits: 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 account, and the credits a paid invoice carries are added to it, so this is that person\'s whole balance (the credits of every workspace of the account together), where `getUserCreditBalance` reads the one workspace the request acts in. 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.
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 has ONE account for its credits: 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 account, and the credits a paid invoice carries are added to it, so this is that person\'s whole balance (the credits of every workspace of the account together), where `getUserCreditBalance` reads the one workspace the request acts in. 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.
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, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is that person\'s whole ledger (the entries of every workspace of the account together), where `getUserCreditTransactions` reads the one workspace the request acts in. 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.
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, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is that person\'s whole ledger (the entries of every workspace of the account together), where `getUserCreditTransactions` reads the one workspace the request acts in. 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.
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) {
@@ -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`) and the account it belongs to (`userId`). 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` `[\"*:*\"]` and no `userId`.
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`) and the account it belongs to (`userId`). 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` `[\"*:*\"]` and no `userId`.
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>;
@@ -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`) and the account it belongs to (`userId`). 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` `[\"*:*\"]` and no `userId`.
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`) and the account it belongs to (`userId`). 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` `[\"*:*\"]` and no `userId`.
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) {
@@ -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 of the workspace the caller works in, newest first: a team\'s shared files (every member\'s, and those of members who have since left) when the caller works in a team, and the account\'s own files otherwise. A person signed in on widgetic.com who works in their own workspace sees only the files they uploaded there, not the ones they uploaded inside a team (those are in the team\'s workspace). An API key lists every file 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.
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 of the workspace the caller works in, newest first: a team\'s shared files (every member\'s, and those of members who have since left) when the caller works in a team, and the account\'s own files otherwise. A person signed in on widgetic.com who works in their own workspace sees only the files they uploaded there, not the ones they uploaded inside a team (those are in the team\'s workspace). An API key lists every file 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.
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>;
@@ -150,7 +150,7 @@ class UploadsApi extends runtime.BaseAPI {
150
150
  return await response.value();
151
151
  }
152
152
  /**
153
- * The files of the workspace the caller works in, newest first: a team\'s shared files (every member\'s, and those of members who have since left) when the caller works in a team, and the account\'s own files otherwise. A person signed in on widgetic.com who works in their own workspace sees only the files they uploaded there, not the ones they uploaded inside a team (those are in the team\'s workspace). An API key lists every file 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.
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 of the workspace the caller works in, newest first: a team\'s shared files (every member\'s, and those of members who have since left) when the caller works in a team, and the account\'s own files otherwise. A person signed in on widgetic.com who works in their own workspace sees only the files they uploaded there, not the ones they uploaded inside a team (those are in the team\'s workspace). An API key lists every file 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.
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) {
@@ -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, AddDomainRequest, ConfirmAdapterConnectionRequest, CreateUserApiKeyRequest, CreatedUserApiKeyResponse, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, GetPersonalWorkspaceDomains200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, PersonalWorkspaceDomainResultResponse, SetAdapterConnectionRequest, UpdateDomainRequest, UpdateUserApiKeyRequest, UserApiKeyResponse } from '../models/index';
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 an 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. 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. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
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 an 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. 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. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
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
@@ -53,44 +53,6 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class UsersApi extends runtime.BaseAPI {
56
- /**
57
- * 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.
58
- * Allow a website to show your widgets
59
- */
60
- async addPersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
61
- if (requestParameters['id'] == null) {
62
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addPersonalWorkspaceDomain().');
63
- }
64
- if (requestParameters['addDomainRequest'] == null) {
65
- throw new runtime.RequiredError('addDomainRequest', 'Required parameter "addDomainRequest" was null or undefined when calling addPersonalWorkspaceDomain().');
66
- }
67
- const queryParameters = {};
68
- const headerParameters = {};
69
- headerParameters['Content-Type'] = 'application/json';
70
- if (this.configuration && this.configuration.accessToken) {
71
- const token = this.configuration.accessToken;
72
- const tokenString = await token("apiKeyAuth", []);
73
- if (tokenString) {
74
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
75
- }
76
- }
77
- const response = await this.request({
78
- path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
79
- method: 'POST',
80
- headers: headerParameters,
81
- query: queryParameters,
82
- body: (0, index_1.AddDomainRequestToJSON)(requestParameters['addDomainRequest']),
83
- }, initOverrides);
84
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
85
- }
86
- /**
87
- * 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.
88
- * Allow a website to show your widgets
89
- */
90
- async addPersonalWorkspaceDomain(requestParameters, initOverrides) {
91
- const response = await this.addPersonalWorkspaceDomainRaw(requestParameters, initOverrides);
92
- return await response.value();
93
- }
94
56
  /**
95
57
  * 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.
96
58
  * Confirm an adapter address with the code that was emailed to it
@@ -136,7 +98,7 @@ class UsersApi extends runtime.BaseAPI {
136
98
  return await response.value();
137
99
  }
138
100
  /**
139
- * Makes a new API key for an 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. 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. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
101
+ * 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.
140
102
  * Create an API key
141
103
  */
142
104
  async createUserApiKeyRaw(requestParameters, initOverrides) {
@@ -172,49 +134,13 @@ class UsersApi extends runtime.BaseAPI {
172
134
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreatedUserApiKeyResponseFromJSON)(jsonValue));
173
135
  }
174
136
  /**
175
- * Makes a new API key for an 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. 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. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
137
+ * 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.
176
138
  * Create an API key
177
139
  */
178
140
  async createUserApiKey(requestParameters, initOverrides) {
179
141
  const response = await this.createUserApiKeyRaw(requestParameters, initOverrides);
180
142
  return await response.value();
181
143
  }
182
- /**
183
- * 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.
184
- * Stop allowing a website to show your widgets
185
- */
186
- async deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
187
- if (requestParameters['id'] == null) {
188
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deletePersonalWorkspaceDomain().');
189
- }
190
- if (requestParameters['domainId'] == null) {
191
- throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling deletePersonalWorkspaceDomain().');
192
- }
193
- const queryParameters = {};
194
- const headerParameters = {};
195
- if (this.configuration && this.configuration.accessToken) {
196
- const token = this.configuration.accessToken;
197
- const tokenString = await token("apiKeyAuth", []);
198
- if (tokenString) {
199
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
200
- }
201
- }
202
- const response = await this.request({
203
- path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
204
- method: 'DELETE',
205
- headers: headerParameters,
206
- query: queryParameters,
207
- }, initOverrides);
208
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeletePersonalWorkspaceDomainResponseFromJSON)(jsonValue));
209
- }
210
- /**
211
- * 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.
212
- * Stop allowing a website to show your widgets
213
- */
214
- async deletePersonalWorkspaceDomain(requestParameters, initOverrides) {
215
- const response = await this.deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
216
- return await response.value();
217
- }
218
144
  /**
219
145
  * 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`.
220
146
  * Delete an API key
@@ -251,39 +177,6 @@ class UsersApi extends runtime.BaseAPI {
251
177
  const response = await this.deleteUserApiKeyRaw(requestParameters, initOverrides);
252
178
  return await response.value();
253
179
  }
254
- /**
255
- * 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.
256
- * List the websites allowed to show your widgets
257
- */
258
- async getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides) {
259
- if (requestParameters['id'] == null) {
260
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPersonalWorkspaceDomains().');
261
- }
262
- const queryParameters = {};
263
- const headerParameters = {};
264
- if (this.configuration && this.configuration.accessToken) {
265
- const token = this.configuration.accessToken;
266
- const tokenString = await token("apiKeyAuth", []);
267
- if (tokenString) {
268
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
269
- }
270
- }
271
- const response = await this.request({
272
- path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
273
- method: 'GET',
274
- headers: headerParameters,
275
- query: queryParameters,
276
- }, initOverrides);
277
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPersonalWorkspaceDomains200ResponseFromJSON)(jsonValue));
278
- }
279
- /**
280
- * 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.
281
- * List the websites allowed to show your widgets
282
- */
283
- async getPersonalWorkspaceDomains(requestParameters, initOverrides) {
284
- const response = await this.getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides);
285
- return await response.value();
286
- }
287
180
  /**
288
181
  * 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.
289
182
  * See which adapter keys an account has connected
@@ -472,47 +365,6 @@ class UsersApi extends runtime.BaseAPI {
472
365
  const response = await this.setUserAdapterConnectionRaw(requestParameters, initOverrides);
473
366
  return await response.value();
474
367
  }
475
- /**
476
- * 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.
477
- * Change a website on your list
478
- */
479
- async updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
480
- if (requestParameters['id'] == null) {
481
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePersonalWorkspaceDomain().');
482
- }
483
- if (requestParameters['domainId'] == null) {
484
- throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling updatePersonalWorkspaceDomain().');
485
- }
486
- if (requestParameters['updateDomainRequest'] == null) {
487
- throw new runtime.RequiredError('updateDomainRequest', 'Required parameter "updateDomainRequest" was null or undefined when calling updatePersonalWorkspaceDomain().');
488
- }
489
- const queryParameters = {};
490
- const headerParameters = {};
491
- headerParameters['Content-Type'] = 'application/json';
492
- if (this.configuration && this.configuration.accessToken) {
493
- const token = this.configuration.accessToken;
494
- const tokenString = await token("apiKeyAuth", []);
495
- if (tokenString) {
496
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
497
- }
498
- }
499
- const response = await this.request({
500
- path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
501
- method: 'PUT',
502
- headers: headerParameters,
503
- query: queryParameters,
504
- body: (0, index_1.UpdateDomainRequestToJSON)(requestParameters['updateDomainRequest']),
505
- }, initOverrides);
506
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
507
- }
508
- /**
509
- * 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.
510
- * Change a website on your list
511
- */
512
- async updatePersonalWorkspaceDomain(requestParameters, initOverrides) {
513
- const response = await this.updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
514
- return await response.value();
515
- }
516
368
  /**
517
369
  * 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.
518
370
  * Rename an API key, or switch it off or on
@@ -45,12 +45,12 @@ export declare class WidgetsApi extends runtime.BaseAPI {
45
45
  */
46
46
  createCompositionFromWidget(requestParameters: CreateCompositionFromWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
47
47
  /**
48
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
48
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
49
49
  * Create Widget
50
50
  */
51
51
  createWidgetRaw(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
52
52
  /**
53
- * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
53
+ * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in a workspace where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. Every widget belongs to one workspace. It goes where its project is; with no project, in the workspace you name (`organizationId`); and when you name neither, in the workspace the call works in (the one your API key or connection belongs to, or the one you last chose on widgetic.com). A project of one workspace together with the id of another is refused with 400. A person who belongs to no workspace yet is told so (403 `NO_WORKSPACE`), and a call that acts for no person (an internal service) must name the workspace. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
54
54
  * Create Widget
55
55
  */
56
56
  createWidget(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;