@widgetic/api-sdk-ts 2.0.1 → 2.0.3

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 (66) hide show
  1. package/dist/apis/BrandKitApi.d.ts +4 -4
  2. package/dist/apis/BrandKitApi.js +4 -4
  3. package/dist/apis/CompositionsApi.d.ts +1 -0
  4. package/dist/apis/CompositionsApi.js +3 -0
  5. package/dist/apis/CreditsApi.d.ts +4 -4
  6. package/dist/apis/CreditsApi.js +4 -4
  7. package/dist/apis/PartnersApi.d.ts +4 -4
  8. package/dist/apis/PartnersApi.js +4 -4
  9. package/dist/apis/UploadsApi.d.ts +4 -4
  10. package/dist/apis/UploadsApi.js +4 -4
  11. package/dist/esm/apis/BrandKitApi.js +4 -4
  12. package/dist/esm/apis/CompositionsApi.js +3 -0
  13. package/dist/esm/apis/CreditsApi.js +4 -4
  14. package/dist/esm/apis/PartnersApi.js +4 -4
  15. package/dist/esm/apis/UploadsApi.js +4 -4
  16. package/dist/esm/models/BrandKitTokens.js +3 -0
  17. package/dist/esm/models/BrandTextStyle.js +65 -0
  18. package/dist/esm/models/Canvas.js +3 -0
  19. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  20. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  21. package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
  22. package/dist/esm/models/PatchBrandKitRequest.js +3 -0
  23. package/dist/esm/models/Upload.js +2 -0
  24. package/dist/esm/models/Widget.js +6 -0
  25. package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
  26. package/dist/esm/models/WidgetCodeChange.js +68 -0
  27. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  28. package/dist/esm/models/WidgetNextStep.js +4 -0
  29. package/dist/esm/models/WidgetPlanDecisions.js +4 -0
  30. package/dist/esm/models/index.js +4 -0
  31. package/dist/esm/runtime.js +1 -1
  32. package/dist/models/AccountCreditBalance.d.ts +2 -2
  33. package/dist/models/BrandKitTokens.d.ts +8 -1
  34. package/dist/models/BrandKitTokens.js +3 -0
  35. package/dist/models/BrandKitView.d.ts +1 -1
  36. package/dist/models/BrandTextStyle.d.ts +59 -0
  37. package/dist/models/BrandTextStyle.js +73 -0
  38. package/dist/models/Canvas.d.ts +7 -0
  39. package/dist/models/Canvas.js +3 -0
  40. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  41. package/dist/models/CanvasActiveOperation.js +74 -0
  42. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  43. package/dist/models/CreateWidget201ResponseData.js +6 -0
  44. package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
  45. package/dist/models/GetOperationResponseDataMetadata.js +12 -1
  46. package/dist/models/PatchBrandKitRequest.d.ts +7 -0
  47. package/dist/models/PatchBrandKitRequest.js +3 -0
  48. package/dist/models/Upload.d.ts +6 -0
  49. package/dist/models/Upload.js +2 -0
  50. package/dist/models/Widget.d.ts +18 -0
  51. package/dist/models/Widget.js +6 -0
  52. package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
  53. package/dist/models/WidgetClarificationQuestion.js +4 -0
  54. package/dist/models/WidgetCodeChange.d.ts +70 -0
  55. package/dist/models/WidgetCodeChange.js +76 -0
  56. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  57. package/dist/models/WidgetCodeChanges.js +55 -0
  58. package/dist/models/WidgetNextStep.d.ts +7 -1
  59. package/dist/models/WidgetNextStep.js +4 -0
  60. package/dist/models/WidgetPlanDecisions.d.ts +6 -0
  61. package/dist/models/WidgetPlanDecisions.js +4 -0
  62. package/dist/models/index.d.ts +4 -0
  63. package/dist/models/index.js +4 -0
  64. package/dist/runtime.d.ts +2 -2
  65. package/dist/runtime.js +1 -1
  66. package/package.json +1 -1
@@ -76,12 +76,12 @@ export declare class BrandKitApi extends runtime.BaseAPI {
76
76
  */
77
77
  getBrandKit(requestParameters?: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
78
78
  /**
79
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
79
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
80
80
  * Change part of the Brand Kit
81
81
  */
82
82
  patchBrandKitRaw(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
83
83
  /**
84
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
84
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
85
85
  * Change part of the Brand Kit
86
86
  */
87
87
  patchBrandKit(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
@@ -110,12 +110,12 @@ export declare class BrandKitApi extends runtime.BaseAPI {
110
110
  */
111
111
  postBrandKitIcon(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
112
112
  /**
113
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
113
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
114
114
  * Save Brand Kit tokens
115
115
  */
116
116
  putBrandKitRaw(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
117
117
  /**
118
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
118
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
119
119
  * Save Brand Kit tokens
120
120
  */
121
121
  putBrandKit(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
@@ -152,7 +152,7 @@ class BrandKitApi extends runtime.BaseAPI {
152
152
  return await response.value();
153
153
  }
154
154
  /**
155
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
155
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
156
156
  * Change part of the Brand Kit
157
157
  */
158
158
  async patchBrandKitRaw(requestParameters, initOverrides) {
@@ -182,7 +182,7 @@ class BrandKitApi extends runtime.BaseAPI {
182
182
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
183
183
  }
184
184
  /**
185
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
185
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
186
186
  * Change part of the Brand Kit
187
187
  */
188
188
  async patchBrandKit(requestParameters, initOverrides) {
@@ -333,7 +333,7 @@ class BrandKitApi extends runtime.BaseAPI {
333
333
  return await response.value();
334
334
  }
335
335
  /**
336
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
336
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
337
337
  * Save Brand Kit tokens
338
338
  */
339
339
  async putBrandKitRaw(requestParameters, initOverrides) {
@@ -363,7 +363,7 @@ class BrandKitApi extends runtime.BaseAPI {
363
363
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
364
364
  }
365
365
  /**
366
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
366
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
367
367
  * Save Brand Kit tokens
368
368
  */
369
369
  async putBrandKit(requestParameters, initOverrides) {
@@ -138,6 +138,7 @@ export interface GetAllCompositionsRequest {
138
138
  }
139
139
  export interface GetCompositionByIdRequest {
140
140
  id: string;
141
+ ifNoneMatch?: string;
141
142
  xManagedUserId?: string;
142
143
  xManagedUserExternalId?: string;
143
144
  }
@@ -844,6 +844,9 @@ class CompositionsApi extends runtime.BaseAPI {
844
844
  }
845
845
  const queryParameters = {};
846
846
  const headerParameters = {};
847
+ if (requestParameters['ifNoneMatch'] != null) {
848
+ headerParameters['If-None-Match'] = String(requestParameters['ifNoneMatch']);
849
+ }
847
850
  if (requestParameters['xManagedUserId'] != null) {
848
851
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
849
852
  }
@@ -25,22 +25,22 @@ export interface GetUserCreditTransactionsRequest {
25
25
  */
26
26
  export declare class CreditsApi extends runtime.BaseAPI {
27
27
  /**
28
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
28
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
29
29
  * Get an account\'s credit balance
30
30
  */
31
31
  getUserCreditBalanceRaw(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
32
32
  /**
33
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
33
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
34
34
  * Get an account\'s credit balance
35
35
  */
36
36
  getUserCreditBalance(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
37
37
  /**
38
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
38
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
39
39
  * List an account\'s credit ledger
40
40
  */
41
41
  getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditTransactionListResponse>>;
42
42
  /**
43
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
43
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
44
44
  * List an account\'s credit ledger
45
45
  */
46
46
  getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class CreditsApi extends runtime.BaseAPI {
56
56
  /**
57
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
57
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
58
58
  * Get an account\'s credit balance
59
59
  */
60
60
  async getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -79,7 +79,7 @@ class CreditsApi extends runtime.BaseAPI {
79
79
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditBalanceResponseFromJSON)(jsonValue));
80
80
  }
81
81
  /**
82
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
82
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
83
83
  * Get an account\'s credit balance
84
84
  */
85
85
  async getUserCreditBalance(requestParameters, initOverrides) {
@@ -87,7 +87,7 @@ class CreditsApi extends runtime.BaseAPI {
87
87
  return await response.value();
88
88
  }
89
89
  /**
90
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
90
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
91
91
  * List an account\'s credit ledger
92
92
  */
93
93
  async getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -121,7 +121,7 @@ class CreditsApi extends runtime.BaseAPI {
121
121
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditTransactionListResponseFromJSON)(jsonValue));
122
122
  }
123
123
  /**
124
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
124
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
125
125
  * List an account\'s credit ledger
126
126
  */
127
127
  async getUserCreditTransactions(requestParameters, initOverrides) {
@@ -290,22 +290,22 @@ export declare class PartnersApi extends runtime.BaseAPI {
290
290
  */
291
291
  getPartnerContract(requestParameters: GetPartnerContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerContractResponse>;
292
292
  /**
293
- * Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner 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 the same balance `getUserCreditBalance` reads for that person. 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.
293
+ * 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.
294
294
  * Get partner credit balance
295
295
  */
296
296
  getPartnerCreditBalanceRaw(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
297
297
  /**
298
- * Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner 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 the same balance `getUserCreditBalance` reads for that person. 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.
298
+ * 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.
299
299
  * Get partner credit balance
300
300
  */
301
301
  getPartnerCreditBalance(requestParameters: GetPartnerCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
302
302
  /**
303
- * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, 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 the same ledger `getUserCreditTransactions` reads for that person. 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.
303
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, 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.
304
304
  * Get partner credit transaction history
305
305
  */
306
306
  getPartnerCreditTransactionsRaw(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditTransactionListResponse>>;
307
307
  /**
308
- * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, 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 the same ledger `getUserCreditTransactions` reads for that person. 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.
308
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, 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.
309
309
  * Get partner credit transaction history
310
310
  */
311
311
  getPartnerCreditTransactions(requestParameters: GetPartnerCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
@@ -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 the same balance `getUserCreditBalance` reads for that person. 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 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.
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 the same balance `getUserCreditBalance` reads for that person. 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 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.
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 the same ledger `getUserCreditTransactions` reads for that person. 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 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.
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 the same ledger `getUserCreditTransactions` reads for that person. 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 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.
525
525
  * Get partner credit transaction history
526
526
  */
527
527
  async getPartnerCreditTransactions(requestParameters, initOverrides) {
@@ -35,12 +35,12 @@ export interface UploadFileRequest {
35
35
  */
36
36
  export declare class UploadsApi extends runtime.BaseAPI {
37
37
  /**
38
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
38
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
39
39
  * Delete an upload
40
40
  */
41
41
  deleteUploadRaw(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUpload200Response>>;
42
42
  /**
43
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
43
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
44
44
  * Delete an upload
45
45
  */
46
46
  deleteUpload(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUpload200Response>;
@@ -65,12 +65,12 @@ export declare class UploadsApi extends runtime.BaseAPI {
65
65
  */
66
66
  getUploadLimits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponse>;
67
67
  /**
68
- * The files the account has uploaded, newest first. 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: 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.
69
69
  * List the account\'s uploads
70
70
  */
71
71
  listUploadsRaw(requestParameters: ListUploadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListUploads200Response>>;
72
72
  /**
73
- * The files the account has uploaded, newest first. 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: 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.
74
74
  * List the account\'s uploads
75
75
  */
76
76
  listUploads(requestParameters?: ListUploadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListUploads200Response>;
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class UploadsApi extends runtime.BaseAPI {
56
56
  /**
57
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
57
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
58
58
  * Delete an upload
59
59
  */
60
60
  async deleteUploadRaw(requestParameters, initOverrides) {
@@ -79,7 +79,7 @@ class UploadsApi extends runtime.BaseAPI {
79
79
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteUpload200ResponseFromJSON)(jsonValue));
80
80
  }
81
81
  /**
82
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
82
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
83
83
  * Delete an upload
84
84
  */
85
85
  async deleteUpload(requestParameters, initOverrides) {
@@ -150,7 +150,7 @@ class UploadsApi extends runtime.BaseAPI {
150
150
  return await response.value();
151
151
  }
152
152
  /**
153
- * The files the account has uploaded, newest first. 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: 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.
154
154
  * List the account\'s uploads
155
155
  */
156
156
  async listUploadsRaw(requestParameters, initOverrides) {
@@ -181,7 +181,7 @@ class UploadsApi extends runtime.BaseAPI {
181
181
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListUploads200ResponseFromJSON)(jsonValue));
182
182
  }
183
183
  /**
184
- * The files the account has uploaded, newest first. 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: 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.
185
185
  * List the account\'s uploads
186
186
  */
187
187
  async listUploads(requestParameters = {}, initOverrides) {
@@ -116,7 +116,7 @@ export class BrandKitApi extends runtime.BaseAPI {
116
116
  return await response.value();
117
117
  }
118
118
  /**
119
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
119
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
120
120
  * Change part of the Brand Kit
121
121
  */
122
122
  async patchBrandKitRaw(requestParameters, initOverrides) {
@@ -146,7 +146,7 @@ export class BrandKitApi extends runtime.BaseAPI {
146
146
  return new runtime.JSONApiResponse(response, (jsonValue) => BrandKitViewResponseFromJSON(jsonValue));
147
147
  }
148
148
  /**
149
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
149
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
150
150
  * Change part of the Brand Kit
151
151
  */
152
152
  async patchBrandKit(requestParameters, initOverrides) {
@@ -297,7 +297,7 @@ export class BrandKitApi extends runtime.BaseAPI {
297
297
  return await response.value();
298
298
  }
299
299
  /**
300
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
300
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
301
301
  * Save Brand Kit tokens
302
302
  */
303
303
  async putBrandKitRaw(requestParameters, initOverrides) {
@@ -327,7 +327,7 @@ export class BrandKitApi extends runtime.BaseAPI {
327
327
  return new runtime.JSONApiResponse(response, (jsonValue) => BrandKitViewResponseFromJSON(jsonValue));
328
328
  }
329
329
  /**
330
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
330
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
331
331
  * Save Brand Kit tokens
332
332
  */
333
333
  async putBrandKit(requestParameters, initOverrides) {
@@ -808,6 +808,9 @@ export class CompositionsApi extends runtime.BaseAPI {
808
808
  }
809
809
  const queryParameters = {};
810
810
  const headerParameters = {};
811
+ if (requestParameters['ifNoneMatch'] != null) {
812
+ headerParameters['If-None-Match'] = String(requestParameters['ifNoneMatch']);
813
+ }
811
814
  if (requestParameters['xManagedUserId'] != null) {
812
815
  headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
813
816
  }
@@ -18,7 +18,7 @@ import { AccountCreditBalanceResponseFromJSON, AccountCreditTransactionListRespo
18
18
  */
19
19
  export class CreditsApi extends runtime.BaseAPI {
20
20
  /**
21
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
21
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
22
22
  * Get an account\'s credit balance
23
23
  */
24
24
  async getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -43,7 +43,7 @@ export class CreditsApi extends runtime.BaseAPI {
43
43
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditBalanceResponseFromJSON(jsonValue));
44
44
  }
45
45
  /**
46
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
46
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads that account\'s whole balance by partner id.
47
47
  * Get an account\'s credit balance
48
48
  */
49
49
  async getUserCreditBalance(requestParameters, initOverrides) {
@@ -51,7 +51,7 @@ export class CreditsApi extends runtime.BaseAPI {
51
51
  return await response.value();
52
52
  }
53
53
  /**
54
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
54
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
55
55
  * List an account\'s credit ledger
56
56
  */
57
57
  async getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -85,7 +85,7 @@ export class CreditsApi extends runtime.BaseAPI {
85
85
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditTransactionListResponseFromJSON(jsonValue));
86
86
  }
87
87
  /**
88
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
88
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
89
89
  * List an account\'s credit ledger
90
90
  */
91
91
  async getUserCreditTransactions(requestParameters, initOverrides) {
@@ -418,7 +418,7 @@ export class PartnersApi extends runtime.BaseAPI {
418
418
  return await response.value();
419
419
  }
420
420
  /**
421
- * 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 the same balance `getUserCreditBalance` reads for that person. 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.
421
+ * 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.
422
422
  * Get partner credit balance
423
423
  */
424
424
  async getPartnerCreditBalanceRaw(requestParameters, initOverrides) {
@@ -443,7 +443,7 @@ export class PartnersApi extends runtime.BaseAPI {
443
443
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditBalanceResponseFromJSON(jsonValue));
444
444
  }
445
445
  /**
446
- * 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 the same balance `getUserCreditBalance` reads for that person. 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.
446
+ * 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.
447
447
  * Get partner credit balance
448
448
  */
449
449
  async getPartnerCreditBalance(requestParameters, initOverrides) {
@@ -451,7 +451,7 @@ export class PartnersApi extends runtime.BaseAPI {
451
451
  return await response.value();
452
452
  }
453
453
  /**
454
- * 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 the same ledger `getUserCreditTransactions` reads for that person. 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.
454
+ * 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.
455
455
  * Get partner credit transaction history
456
456
  */
457
457
  async getPartnerCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -485,7 +485,7 @@ export class PartnersApi extends runtime.BaseAPI {
485
485
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditTransactionListResponseFromJSON(jsonValue));
486
486
  }
487
487
  /**
488
- * 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 the same ledger `getUserCreditTransactions` reads for that person. 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.
488
+ * 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.
489
489
  * Get partner credit transaction history
490
490
  */
491
491
  async getPartnerCreditTransactions(requestParameters, initOverrides) {
@@ -18,7 +18,7 @@ import { DeleteUpload200ResponseFromJSON, ListUploads200ResponseFromJSON, Upload
18
18
  */
19
19
  export class UploadsApi extends runtime.BaseAPI {
20
20
  /**
21
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
21
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
22
22
  * Delete an upload
23
23
  */
24
24
  async deleteUploadRaw(requestParameters, initOverrides) {
@@ -43,7 +43,7 @@ export class UploadsApi extends runtime.BaseAPI {
43
43
  return new runtime.JSONApiResponse(response, (jsonValue) => DeleteUpload200ResponseFromJSON(jsonValue));
44
44
  }
45
45
  /**
46
- * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
46
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
47
47
  * Delete an upload
48
48
  */
49
49
  async deleteUpload(requestParameters, initOverrides) {
@@ -114,7 +114,7 @@ export class UploadsApi extends runtime.BaseAPI {
114
114
  return await response.value();
115
115
  }
116
116
  /**
117
- * The files the account has uploaded, newest first. 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.
117
+ * 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.
118
118
  * List the account\'s uploads
119
119
  */
120
120
  async listUploadsRaw(requestParameters, initOverrides) {
@@ -145,7 +145,7 @@ export class UploadsApi extends runtime.BaseAPI {
145
145
  return new runtime.JSONApiResponse(response, (jsonValue) => ListUploads200ResponseFromJSON(jsonValue));
146
146
  }
147
147
  /**
148
- * The files the account has uploaded, newest first. 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.
148
+ * 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.
149
149
  * List the account\'s uploads
150
150
  */
151
151
  async listUploads(requestParameters = {}, initOverrides) {
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { BrandTextStyleFromJSON, BrandTextStyleToJSON, } from './BrandTextStyle.js';
14
15
  import { BrandSpacingFromJSON, BrandSpacingToJSON, } from './BrandSpacing.js';
15
16
  import { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
16
17
  import { BrandKitTokensFontsFromJSON, BrandKitTokensFontsToJSON, } from './BrandKitTokensFonts.js';
@@ -36,6 +37,7 @@ export function BrandKitTokensFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return {
37
38
  'colors': (json['colors'].map(BrandColorFromJSON)),
38
39
  'fonts': BrandKitTokensFontsFromJSON(json['fonts']),
40
+ 'textStyles': json['textStyles'] == null ? undefined : (json['textStyles'].map(BrandTextStyleFromJSON)),
39
41
  'spacing': BrandSpacingFromJSON(json['spacing']),
40
42
  'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
43
  };
@@ -50,6 +52,7 @@ export function BrandKitTokensToJSONTyped(value, ignoreDiscriminator = false) {
50
52
  return {
51
53
  'colors': (value['colors'].map(BrandColorToJSON)),
52
54
  'fonts': BrandKitTokensFontsToJSON(value['fonts']),
55
+ 'textStyles': value['textStyles'] == null ? undefined : (value['textStyles'].map(BrandTextStyleToJSON)),
53
56
  'spacing': BrandSpacingToJSON(value['spacing']),
54
57
  'instructions': value['instructions'],
55
58
  };