@widgetic/api-sdk-ts 2.0.2 → 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.
- package/dist/apis/CompositionsApi.d.ts +1 -0
- package/dist/apis/CompositionsApi.js +3 -0
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/PartnersApi.d.ts +4 -4
- package/dist/apis/PartnersApi.js +4 -4
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/CompositionsApi.js +3 -0
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/PartnersApi.js +4 -4
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
- package/dist/esm/models/Upload.js +2 -0
- package/dist/esm/models/Widget.js +6 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +4 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- package/dist/models/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -0
- package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
- package/dist/models/GetOperationResponseDataMetadata.js +12 -1
- package/dist/models/Upload.d.ts +6 -0
- package/dist/models/Upload.js +2 -0
- package/dist/models/Widget.d.ts +18 -0
- package/dist/models/Widget.js +6 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
- package/dist/models/WidgetClarificationQuestion.js +4 -0
- package/dist/models/WidgetCodeChange.d.ts +70 -0
- package/dist/models/WidgetCodeChange.js +76 -0
- package/dist/models/WidgetCodeChanges.d.ts +39 -0
- package/dist/models/WidgetCodeChanges.js +55 -0
- package/dist/models/WidgetNextStep.d.ts +7 -1
- package/dist/models/WidgetNextStep.js +4 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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>;
|
package/dist/apis/CreditsApi.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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>;
|
package/dist/apis/PartnersApi.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
38
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
39
39
|
* Delete an upload
|
|
40
40
|
*/
|
|
41
41
|
deleteUploadRaw(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUpload200Response>>;
|
|
42
42
|
/**
|
|
43
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
43
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
44
44
|
* Delete an upload
|
|
45
45
|
*/
|
|
46
46
|
deleteUpload(requestParameters: DeleteUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUpload200Response>;
|
|
@@ -65,12 +65,12 @@ export declare class UploadsApi extends runtime.BaseAPI {
|
|
|
65
65
|
*/
|
|
66
66
|
getUploadLimits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponse>;
|
|
67
67
|
/**
|
|
68
|
-
* The files the
|
|
68
|
+
* The files of the workspace the caller works in, newest first: 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
|
|
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>;
|
package/dist/apis/UploadsApi.js
CHANGED
|
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class UploadsApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
57
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
58
58
|
* Delete an upload
|
|
59
59
|
*/
|
|
60
60
|
async deleteUploadRaw(requestParameters, initOverrides) {
|
|
@@ -79,7 +79,7 @@ class UploadsApi extends runtime.BaseAPI {
|
|
|
79
79
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteUpload200ResponseFromJSON)(jsonValue));
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from
|
|
82
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from the storage allowance it was charged to (the team\'s shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. A file you uploaded can always be deleted by you. A file in a team\'s workspace can also be deleted by the owner and by every active member of that team, whoever uploaded it (the files of a workspace are the whole team\'s). An upload that belongs to another account, or to a team you are not a member of, is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
83
83
|
* Delete an upload
|
|
84
84
|
*/
|
|
85
85
|
async deleteUpload(requestParameters, initOverrides) {
|
|
@@ -150,7 +150,7 @@ class UploadsApi extends runtime.BaseAPI {
|
|
|
150
150
|
return await response.value();
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
|
-
* The files the
|
|
153
|
+
* The files of the workspace the caller works in, newest first: 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
|
|
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) {
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 { CanvasActiveOperationFromJSON, CanvasActiveOperationToJSON, } from './CanvasActiveOperation.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Canvas interface.
|
|
16
17
|
*/
|
|
@@ -41,6 +42,7 @@ export function CanvasFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'managedUserId': json['managedUserId'] == null ? undefined : json['managedUserId'],
|
|
42
43
|
'createdAt': (new Date(json['createdAt'])),
|
|
43
44
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
45
|
+
'activeOperation': json['activeOperation'] == null ? undefined : CanvasActiveOperationFromJSON(json['activeOperation']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
export function CanvasToJSON(json) {
|
|
@@ -59,5 +61,6 @@ export function CanvasToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
61
|
'managedUserId': value['managedUserId'],
|
|
60
62
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
61
63
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
64
|
+
'activeOperation': CanvasActiveOperationToJSON(value['activeOperation']),
|
|
62
65
|
};
|
|
63
66
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const CanvasActiveOperationStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Running: 'running'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CanvasActiveOperation interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCanvasActiveOperation(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('widgetId' in value) || value['widgetId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function CanvasActiveOperationFromJSON(json) {
|
|
38
|
+
return CanvasActiveOperationFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CanvasActiveOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
'progress': json['progress'],
|
|
49
|
+
'widgetId': json['widgetId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function CanvasActiveOperationToJSON(json) {
|
|
53
|
+
return CanvasActiveOperationToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function CanvasActiveOperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'status': value['status'],
|
|
63
|
+
'progress': value['progress'],
|
|
64
|
+
'widgetId': value['widgetId'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -44,11 +44,14 @@ export function CreateWidget201ResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
44
44
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
45
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
46
46
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
47
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
47
48
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
48
49
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
49
50
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
50
51
|
'version': json['version'] == null ? undefined : json['version'],
|
|
51
52
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
53
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
54
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
52
55
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
53
56
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
54
57
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -76,11 +79,14 @@ export function CreateWidget201ResponseDataToJSONTyped(value, ignoreDiscriminato
|
|
|
76
79
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
77
80
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
78
81
|
'jsPath': value['jsPath'],
|
|
82
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
79
83
|
'canvasId': value['canvasId'],
|
|
80
84
|
'repoId': value['repoId'],
|
|
81
85
|
'databaseId': value['databaseId'],
|
|
82
86
|
'version': value['version'],
|
|
83
87
|
'lastCommitSha': value['lastCommitSha'],
|
|
88
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
89
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
84
90
|
'organizationId': value['organizationId'],
|
|
85
91
|
'projectFolder': value['projectFolder'],
|
|
86
92
|
'workspaceType': value['workspaceType'],
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { WidgetNextStepFromJSON, WidgetNextStepToJSON, } from './WidgetNextStep.js';
|
|
15
15
|
import { WidgetClarificationFromJSON, WidgetClarificationToJSON, } from './WidgetClarification.js';
|
|
16
|
+
import { WidgetCodeChangesFromJSON, WidgetCodeChangesToJSON, } from './WidgetCodeChanges.js';
|
|
16
17
|
import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
|
|
17
18
|
/**
|
|
18
19
|
* @export
|
|
@@ -20,6 +21,12 @@ import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
|
|
|
20
21
|
export const GetOperationResponseDataMetadataOutcomeEnum = {
|
|
21
22
|
NeedsAnswers: 'needs_answers'
|
|
22
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const GetOperationResponseDataMetadataStartedByEnum = {
|
|
28
|
+
Agent: 'agent'
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the GetOperationResponseDataMetadata interface.
|
|
25
32
|
*/
|
|
@@ -39,6 +46,8 @@ export function GetOperationResponseDataMetadataFromJSONTyped(json, ignoreDiscri
|
|
|
39
46
|
'outcome': json['outcome'] == null ? undefined : json['outcome'],
|
|
40
47
|
'clarification': json['clarification'] == null ? undefined : WidgetClarificationFromJSON(json['clarification']),
|
|
41
48
|
'nextSteps': json['nextSteps'] == null ? undefined : (json['nextSteps'].map(WidgetNextStepFromJSON)),
|
|
49
|
+
'codeChanges': json['codeChanges'] == null ? undefined : WidgetCodeChangesFromJSON(json['codeChanges']),
|
|
50
|
+
'startedBy': json['startedBy'] == null ? undefined : json['startedBy'],
|
|
42
51
|
};
|
|
43
52
|
}
|
|
44
53
|
export function GetOperationResponseDataMetadataToJSON(json) {
|
|
@@ -54,5 +63,7 @@ export function GetOperationResponseDataMetadataToJSONTyped(value, ignoreDiscrim
|
|
|
54
63
|
'outcome': value['outcome'],
|
|
55
64
|
'clarification': WidgetClarificationToJSON(value['clarification']),
|
|
56
65
|
'nextSteps': value['nextSteps'] == null ? undefined : (value['nextSteps'].map(WidgetNextStepToJSON)),
|
|
66
|
+
'codeChanges': WidgetCodeChangesToJSON(value['codeChanges']),
|
|
67
|
+
'startedBy': value['startedBy'],
|
|
57
68
|
};
|
|
58
69
|
}
|
|
@@ -82,6 +82,7 @@ export function UploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'conversation_id': json['conversation_id'] == null ? undefined : json['conversation_id'],
|
|
83
83
|
'managed_user_id': json['managed_user_id'] == null ? undefined : json['managed_user_id'],
|
|
84
84
|
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
85
|
+
'library_folder_path': json['library_folder_path'] == null ? undefined : json['library_folder_path'],
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
88
|
export function UploadToJSON(json) {
|
|
@@ -106,5 +107,6 @@ export function UploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
106
107
|
'conversation_id': value['conversation_id'],
|
|
107
108
|
'managed_user_id': value['managed_user_id'],
|
|
108
109
|
'purpose': value['purpose'],
|
|
110
|
+
'library_folder_path': value['library_folder_path'],
|
|
109
111
|
};
|
|
110
112
|
}
|