@widgetic/api-sdk-ts 1.11.109 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/apis/BrandKitApi.d.ts +130 -0
- package/dist/apis/BrandKitApi.js +381 -0
- package/dist/apis/CanvasesApi.d.ts +15 -15
- package/dist/apis/CompositionsApi.d.ts +255 -155
- package/dist/apis/CompositionsApi.js +333 -133
- package/dist/apis/CreditsApi.d.ts +7 -7
- package/dist/apis/CreditsApi.js +1 -1
- package/dist/apis/EntitlementsApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +2 -2
- package/dist/apis/ManagedUsersApi.d.ts +97 -63
- package/dist/apis/ManagedUsersApi.js +106 -39
- package/dist/apis/OperationsApi.d.ts +4 -4
- package/dist/apis/OperationsApi.js +5 -5
- package/dist/apis/PartnersApi.d.ts +125 -125
- package/dist/apis/PartnersApi.js +11 -11
- package/dist/apis/PublicEmbedApi.d.ts +42 -42
- package/dist/apis/PublicEmbedApi.js +29 -29
- package/dist/apis/UploadsApi.d.ts +38 -38
- package/dist/apis/UploadsApi.js +60 -60
- package/dist/apis/UsersApi.d.ts +40 -40
- package/dist/apis/UsersApi.js +4 -4
- package/dist/apis/WidgetsApi.d.ts +23 -23
- package/dist/apis/WidgetsApi.js +36 -36
- package/dist/apis/WorkflowsApi.d.ts +85 -127
- package/dist/apis/WorkflowsApi.js +82 -192
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/esm/apis/BrandKitApi.js +344 -0
- package/dist/esm/apis/CompositionsApi.js +333 -133
- package/dist/esm/apis/CreditsApi.js +2 -2
- package/dist/esm/apis/InvoicesApi.js +1 -1
- package/dist/esm/apis/ManagedUsersApi.js +106 -39
- package/dist/esm/apis/OperationsApi.js +6 -6
- package/dist/esm/apis/PartnersApi.js +12 -12
- package/dist/esm/apis/PublicEmbedApi.js +30 -30
- package/dist/esm/apis/UploadsApi.js +60 -60
- package/dist/esm/apis/UsersApi.js +5 -5
- package/dist/esm/apis/WidgetsApi.js +37 -37
- package/dist/esm/apis/WorkflowsApi.js +82 -192
- package/dist/esm/apis/index.js +1 -2
- package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
- package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
- package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
- package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
- package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
- package/dist/esm/models/BrandColor.js +64 -0
- package/dist/esm/models/BrandFont.js +72 -0
- package/dist/esm/models/BrandKitAssetView.js +96 -0
- package/dist/esm/models/BrandKitFigmaSource.js +59 -0
- package/dist/esm/models/BrandKitTokens.js +56 -0
- package/dist/esm/models/BrandKitTokensFonts.js +48 -0
- package/dist/esm/models/BrandKitView.js +75 -0
- package/dist/esm/models/BrandKitViewOwner.js +54 -0
- package/dist/esm/models/BrandKitViewResponse.js +51 -0
- package/dist/esm/models/BrandSpacing.js +71 -0
- package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
- package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
- package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
- package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
- package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
- package/dist/esm/models/GetOperationResponse.js +51 -0
- package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +9 -9
- package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
- package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
- package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
- package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
- package/dist/esm/models/PatchBrandKitRequest.js +54 -0
- package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
- package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
- package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
- package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
- package/dist/esm/models/PutBrandKitRequest.js +49 -0
- package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
- package/dist/esm/models/WorkflowFailureReason.js +49 -0
- package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
- package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
- package/dist/esm/models/WorkflowStats.js +3 -0
- package/dist/esm/models/index.js +36 -19
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
- package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
- package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
- package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
- package/dist/models/AdapterConnectionResponse.d.ts +46 -0
- package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
- package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
- package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
- package/dist/models/BrandColor.d.ts +60 -0
- package/dist/models/BrandColor.js +72 -0
- package/dist/models/BrandFont.d.ts +73 -0
- package/dist/models/BrandFont.js +80 -0
- package/dist/models/BrandKitAssetView.d.ts +130 -0
- package/dist/models/BrandKitAssetView.js +104 -0
- package/dist/models/BrandKitFigmaSource.d.ts +56 -0
- package/dist/models/BrandKitFigmaSource.js +66 -0
- package/dist/models/BrandKitTokens.d.ts +53 -0
- package/dist/models/BrandKitTokens.js +63 -0
- package/dist/models/BrandKitTokensFonts.d.ts +51 -0
- package/dist/models/BrandKitTokensFonts.js +55 -0
- package/dist/models/BrandKitView.d.ts +90 -0
- package/dist/models/BrandKitView.js +82 -0
- package/dist/models/BrandKitViewOwner.d.ts +46 -0
- package/dist/models/BrandKitViewOwner.js +62 -0
- package/dist/models/BrandKitViewResponse.d.ts +46 -0
- package/dist/models/BrandKitViewResponse.js +58 -0
- package/dist/models/BrandSpacing.d.ts +74 -0
- package/dist/models/BrandSpacing.js +78 -0
- package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
- package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
- package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
- package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
- package/dist/models/DeleteUpload200Response.d.ts +46 -0
- package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
- package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
- package/dist/models/DeleteUpload200ResponseData.js +48 -0
- package/dist/models/DesignDefaultsResponse.d.ts +46 -0
- package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
- package/dist/models/GetOperationResponse.d.ts +46 -0
- package/dist/models/GetOperationResponse.js +58 -0
- package/dist/models/{OperationsIdGetResponseData.d.ts → GetOperationResponseData.d.ts} +19 -19
- package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +15 -15
- package/dist/models/ListUploads200Response.d.ts +46 -0
- package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
- package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
- package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
- package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
- package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
- package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
- package/dist/models/PatchBrandKitAssetRequest.js +76 -0
- package/dist/models/PatchBrandKitRequest.d.ts +65 -0
- package/dist/models/PatchBrandKitRequest.js +61 -0
- package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
- package/dist/models/PatchBrandKitRequestFonts.js +55 -0
- package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
- package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
- package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
- package/dist/models/PostBrandKitIconRequest.js +54 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
- package/dist/models/PublicWorkflowResponse.d.ts +46 -0
- package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
- package/dist/models/PutBrandKitRequest.d.ts +46 -0
- package/dist/models/PutBrandKitRequest.js +56 -0
- package/dist/models/Upload.d.ts +1 -1
- package/dist/models/UploadLimits.d.ts +3 -3
- package/dist/models/WorkflowDetailResponse.d.ts +46 -0
- package/dist/models/WorkflowDetailResponse.js +58 -0
- package/dist/models/WorkflowFailureReason.d.ts +31 -0
- package/dist/models/WorkflowFailureReason.js +57 -0
- package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
- package/dist/models/WorkflowFailureReasonCounter.js +59 -0
- package/dist/models/WorkflowResponse.d.ts +46 -0
- package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
- package/dist/models/WorkflowStats.d.ts +16 -1
- package/dist/models/WorkflowStats.js +3 -0
- package/dist/models/index.d.ts +36 -19
- package/dist/models/index.js +36 -19
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/apis/PartnerApi.d.ts +0 -2595
- package/dist/apis/PartnerApi.js +0 -6749
- package/dist/apis/WorkspacesApi.d.ts +0 -352
- package/dist/apis/WorkspacesApi.js +0 -946
- package/dist/esm/apis/PartnerApi.js +0 -6712
- package/dist/esm/apis/WorkspacesApi.js +0 -909
- package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
- package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
- package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
- package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
- package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
- package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
- package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
- package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
- package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
- package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
- package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
- package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
- package/dist/models/OperationsIdGetResponse.d.ts +0 -46
- package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
- package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/UploadsGet200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.js +0 -58
- package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
- package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountCreditBalanceResponse,
|
|
14
|
-
export interface
|
|
13
|
+
import type { AccountCreditBalanceResponse, AccountCreditTransactionListResponse } from '../models/index';
|
|
14
|
+
export interface GetUserCreditBalanceRequest {
|
|
15
15
|
userId: string;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface GetUserCreditTransactionsRequest {
|
|
18
18
|
userId: string;
|
|
19
19
|
transactionType?: string;
|
|
20
20
|
limit?: number;
|
|
@@ -28,20 +28,20 @@ export declare class CreditsApi extends runtime.BaseAPI {
|
|
|
28
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.
|
|
29
29
|
* Get an account\'s credit balance
|
|
30
30
|
*/
|
|
31
|
-
getUserCreditBalanceRaw(requestParameters:
|
|
31
|
+
getUserCreditBalanceRaw(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
|
|
32
32
|
/**
|
|
33
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.
|
|
34
34
|
* Get an account\'s credit balance
|
|
35
35
|
*/
|
|
36
|
-
getUserCreditBalance(requestParameters:
|
|
36
|
+
getUserCreditBalance(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
|
|
37
37
|
/**
|
|
38
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.
|
|
39
39
|
* List an account\'s credit ledger
|
|
40
40
|
*/
|
|
41
|
-
getUserCreditTransactionsRaw(requestParameters:
|
|
41
|
+
getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditTransactionListResponse>>;
|
|
42
42
|
/**
|
|
43
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.
|
|
44
44
|
* List an account\'s credit ledger
|
|
45
45
|
*/
|
|
46
|
-
getUserCreditTransactions(requestParameters:
|
|
46
|
+
getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
|
|
47
47
|
}
|
package/dist/apis/CreditsApi.js
CHANGED
|
@@ -118,7 +118,7 @@ class CreditsApi extends runtime.BaseAPI {
|
|
|
118
118
|
headers: headerParameters,
|
|
119
119
|
query: queryParameters,
|
|
120
120
|
}, initOverrides);
|
|
121
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditTransactionListResponseFromJSON)(jsonValue));
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
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.
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { GetManagedUserEntitlementsResponse, GetPartnerEntitlementsResponse } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetManagedUserEntitlementsRequest {
|
|
15
15
|
managedUserId: string;
|
|
16
16
|
includeExpired?: boolean;
|
|
17
17
|
feature?: string;
|
|
18
18
|
source?: string;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface GetPartnerEntitlementsRequest {
|
|
21
21
|
partnerId: string;
|
|
22
22
|
includeExpired?: boolean;
|
|
23
23
|
feature?: string;
|
|
@@ -31,20 +31,20 @@ export declare class EntitlementsApi extends runtime.BaseAPI {
|
|
|
31
31
|
* Retrieves all entitlements for a managed user (admin or partner access).
|
|
32
32
|
* Get managed user entitlements
|
|
33
33
|
*/
|
|
34
|
-
getManagedUserEntitlementsRaw(requestParameters:
|
|
34
|
+
getManagedUserEntitlementsRaw(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserEntitlementsResponse>>;
|
|
35
35
|
/**
|
|
36
36
|
* Retrieves all entitlements for a managed user (admin or partner access).
|
|
37
37
|
* Get managed user entitlements
|
|
38
38
|
*/
|
|
39
|
-
getManagedUserEntitlements(requestParameters:
|
|
39
|
+
getManagedUserEntitlements(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserEntitlementsResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* Retrieves all entitlements for a partner (admin or partner access).
|
|
42
42
|
* Get partner entitlements
|
|
43
43
|
*/
|
|
44
|
-
getPartnerEntitlementsRaw(requestParameters:
|
|
44
|
+
getPartnerEntitlementsRaw(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerEntitlementsResponse>>;
|
|
45
45
|
/**
|
|
46
46
|
* Retrieves all entitlements for a partner (admin or partner access).
|
|
47
47
|
* Get partner entitlements
|
|
48
48
|
*/
|
|
49
|
-
getPartnerEntitlements(requestParameters:
|
|
49
|
+
getPartnerEntitlements(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerEntitlementsResponse>;
|
|
50
50
|
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { GetInvoicesByPartnerId200Response } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetInvoicesByPartnerIdRequest {
|
|
15
15
|
partnerId: string;
|
|
16
|
-
status?:
|
|
16
|
+
status?: GetInvoicesByPartnerIdStatusEnum;
|
|
17
17
|
limit?: number;
|
|
18
18
|
offset?: number;
|
|
19
19
|
}
|
|
@@ -25,17 +25,17 @@ export declare class InvoicesApi extends runtime.BaseAPI {
|
|
|
25
25
|
* Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
|
|
26
26
|
* List a partner\'s invoices
|
|
27
27
|
*/
|
|
28
|
-
getInvoicesByPartnerIdRaw(requestParameters:
|
|
28
|
+
getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
|
|
29
29
|
/**
|
|
30
30
|
* Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
|
|
31
31
|
* List a partner\'s invoices
|
|
32
32
|
*/
|
|
33
|
-
getInvoicesByPartnerId(requestParameters:
|
|
33
|
+
getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @export
|
|
37
37
|
*/
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const GetInvoicesByPartnerIdStatusEnum: {
|
|
39
39
|
readonly Draft: 'draft';
|
|
40
40
|
readonly Open: 'open';
|
|
41
41
|
readonly Pending: 'pending';
|
|
@@ -46,4 +46,4 @@ export declare const GetInvoicesByPartnerId0StatusEnum: {
|
|
|
46
46
|
readonly Refunded: 'refunded';
|
|
47
47
|
readonly Canceled: 'canceled';
|
|
48
48
|
};
|
|
49
|
-
export type
|
|
49
|
+
export type GetInvoicesByPartnerIdStatusEnum = typeof GetInvoicesByPartnerIdStatusEnum[keyof typeof GetInvoicesByPartnerIdStatusEnum];
|
package/dist/apis/InvoicesApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.
|
|
49
|
+
exports.GetInvoicesByPartnerIdStatusEnum = exports.InvoicesApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -100,7 +100,7 @@ exports.InvoicesApi = InvoicesApi;
|
|
|
100
100
|
/**
|
|
101
101
|
* @export
|
|
102
102
|
*/
|
|
103
|
-
exports.
|
|
103
|
+
exports.GetInvoicesByPartnerIdStatusEnum = {
|
|
104
104
|
Draft: 'draft',
|
|
105
105
|
Open: 'open',
|
|
106
106
|
Pending: 'pending',
|
|
@@ -10,74 +10,90 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CopyPartnerPresetRequest, CreateCompositionFromPresetRequest,
|
|
14
|
-
export interface
|
|
13
|
+
import type { CompositionResponse, CopyPartnerPresetRequest, CreateCompositionFromPresetRequest, DesignDefaultsResponse, EditorSessionResponse, GetAllManagedUsers200Response, GetManagedUserStorageUsage200Response, GetManagedUsersByManagerIdResponse, ManagedUserEntriesPageSuccess, ManagedUserLimitsResponse, ManagedUserRemovalResponse, ManagedUserResponse, ManagedUserUsageResponse, NewEditorSession, NewManagedUser, PartnerPresetCopyResponse, RevokeManagedUserEditorSessionsResponse, SetManagedUserLimitsRequest, SetPartnerDesignDefaultsRequest, UpdateManagedUser } from '../models/index';
|
|
14
|
+
export interface CopyPresetForManagedUserRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
key: string;
|
|
17
17
|
idempotencyKey: string;
|
|
18
18
|
copyPartnerPresetRequest?: CopyPartnerPresetRequest;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface CreateCompositionFromPresetOperationRequest {
|
|
21
21
|
id: string;
|
|
22
22
|
key: string;
|
|
23
23
|
idempotencyKey: string;
|
|
24
24
|
createCompositionFromPresetRequest: CreateCompositionFromPresetRequest;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
27
|
-
id: string;
|
|
28
|
-
newEditorSession: NewEditorSession;
|
|
29
|
-
}
|
|
30
|
-
export interface CreateManagedUser0Request {
|
|
26
|
+
export interface CreateManagedUserRequest {
|
|
31
27
|
idempotencyKey: string;
|
|
32
28
|
newManagedUser: NewManagedUser;
|
|
33
29
|
}
|
|
34
|
-
export interface
|
|
30
|
+
export interface CreateManagedUserEditorSessionRequest {
|
|
35
31
|
id: string;
|
|
32
|
+
newEditorSession: NewEditorSession;
|
|
36
33
|
}
|
|
37
|
-
export interface
|
|
34
|
+
export interface DeleteManagedUserRequest {
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
export interface GetAllManagedUsersRequest {
|
|
38
38
|
page?: number;
|
|
39
39
|
size?: number;
|
|
40
40
|
sort?: string;
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
42
|
+
export interface GetManagedUserByIdRequest {
|
|
43
43
|
id: string;
|
|
44
44
|
}
|
|
45
|
-
export interface
|
|
45
|
+
export interface GetManagedUserDesignDefaultsRequest {
|
|
46
46
|
id: string;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
48
|
+
export interface GetManagedUserLimitsRequest {
|
|
49
49
|
id: string;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface GetManagedUserStorageUsageRequest {
|
|
52
52
|
id: string;
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface GetManagedUserUsageRequest {
|
|
55
55
|
id: string;
|
|
56
56
|
startDate?: string;
|
|
57
57
|
endDate?: string;
|
|
58
58
|
}
|
|
59
|
-
export interface
|
|
59
|
+
export interface GetManagedUsersByManagerIdRequest {
|
|
60
60
|
managerId: string;
|
|
61
61
|
page?: number;
|
|
62
62
|
size?: number;
|
|
63
63
|
sort?: string;
|
|
64
64
|
}
|
|
65
|
-
export interface
|
|
65
|
+
export interface ListManagedUserEntriesRequest {
|
|
66
|
+
id: string;
|
|
67
|
+
compositionId?: string;
|
|
68
|
+
table?: string;
|
|
69
|
+
limit?: number;
|
|
70
|
+
order?: ListManagedUserEntriesOrderEnum;
|
|
71
|
+
since?: Date;
|
|
72
|
+
until?: Date;
|
|
73
|
+
cursor?: string;
|
|
74
|
+
context?: {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
77
|
+
filter?: {
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface RevokeManagedUserEditorSessionRequest {
|
|
66
82
|
id: string;
|
|
67
83
|
sessionId: string;
|
|
68
84
|
}
|
|
69
|
-
export interface
|
|
85
|
+
export interface RevokeManagedUserEditorSessionsRequest {
|
|
70
86
|
id: string;
|
|
71
87
|
}
|
|
72
|
-
export interface
|
|
88
|
+
export interface SetManagedUserDesignDefaultsRequest {
|
|
73
89
|
id: string;
|
|
74
90
|
setPartnerDesignDefaultsRequest: SetPartnerDesignDefaultsRequest;
|
|
75
91
|
}
|
|
76
|
-
export interface
|
|
92
|
+
export interface SetManagedUserLimitsOperationRequest {
|
|
77
93
|
id: string;
|
|
78
94
|
setManagedUserLimitsRequest: SetManagedUserLimitsRequest;
|
|
79
95
|
}
|
|
80
|
-
export interface
|
|
96
|
+
export interface UpdateManagedUserRequest {
|
|
81
97
|
id: string;
|
|
82
98
|
idempotencyKey: string;
|
|
83
99
|
updateManagedUser: UpdateManagedUser;
|
|
@@ -90,164 +106,182 @@ export declare class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
90
106
|
* Copies the preset `key` (see `setPartnerPreset`) onto a new canvas for one of your managed users, so their widget creator opens on a widget of their own that starts from yours. The copy is a draft widget in your account, filed under the managed user: `getAllWidgets` with `managedUserId` lists it, and no other managed user\'s editor can reach it. The copy carries the preset\'s code, design and content schemas, and thumbnail, and starts from a fork of its code repository, so the user\'s chat edits begin where yours left off. It does not carry the preset\'s database or its compositions. It is not a preset itself, and changing or removing the preset afterwards never touches it. To start a composition (the content and design editor) instead, you do not need a copy: call `createComposition` with the preset\'s `widgetId` (from `listPartnerPresets`) and the managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one copy is made, not two. A copy that could not be made leaves nothing behind (503 `PRESET_COPY_FAILED`). The managed user must be yours and active.
|
|
91
107
|
* Give a managed user a copy of one of your presets
|
|
92
108
|
*/
|
|
93
|
-
copyPresetForManagedUserRaw(requestParameters:
|
|
109
|
+
copyPresetForManagedUserRaw(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerPresetCopyResponse>>;
|
|
94
110
|
/**
|
|
95
111
|
* Copies the preset `key` (see `setPartnerPreset`) onto a new canvas for one of your managed users, so their widget creator opens on a widget of their own that starts from yours. The copy is a draft widget in your account, filed under the managed user: `getAllWidgets` with `managedUserId` lists it, and no other managed user\'s editor can reach it. The copy carries the preset\'s code, design and content schemas, and thumbnail, and starts from a fork of its code repository, so the user\'s chat edits begin where yours left off. It does not carry the preset\'s database or its compositions. It is not a preset itself, and changing or removing the preset afterwards never touches it. To start a composition (the content and design editor) instead, you do not need a copy: call `createComposition` with the preset\'s `widgetId` (from `listPartnerPresets`) and the managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one copy is made, not two. A copy that could not be made leaves nothing behind (503 `PRESET_COPY_FAILED`). The managed user must be yours and active.
|
|
96
112
|
* Give a managed user a copy of one of your presets
|
|
97
113
|
*/
|
|
98
|
-
copyPresetForManagedUser(requestParameters:
|
|
114
|
+
copyPresetForManagedUser(requestParameters: CopyPresetForManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerPresetCopyResponse>;
|
|
99
115
|
/**
|
|
100
116
|
* Validates the name, optional content, design, embed settings and locale, then creates a draft composition filed under the managed user, built on the preset\'s widget, in a single insert. A failure never leaves a half-made composition. The preset\'s widget must be published. The managed user must be yours and active. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
|
|
101
117
|
* Create a composition from one of your presets in one call
|
|
102
118
|
*/
|
|
103
|
-
createCompositionFromPresetRaw(requestParameters:
|
|
119
|
+
createCompositionFromPresetRaw(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompositionResponse>>;
|
|
104
120
|
/**
|
|
105
121
|
* Validates the name, optional content, design, embed settings and locale, then creates a draft composition filed under the managed user, built on the preset\'s widget, in a single insert. A failure never leaves a half-made composition. The preset\'s widget must be published. The managed user must be yours and active. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
|
|
106
122
|
* Create a composition from one of your presets in one call
|
|
107
123
|
*/
|
|
108
|
-
createCompositionFromPreset(requestParameters:
|
|
109
|
-
/**
|
|
110
|
-
* Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
|
|
111
|
-
* Create an editor session for a managed user
|
|
112
|
-
*/
|
|
113
|
-
createManagedUserEditorSessionRaw(requestParameters: CreateManagedUserEditorSession0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EditorSessionResponse>>;
|
|
114
|
-
/**
|
|
115
|
-
* Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
|
|
116
|
-
* Create an editor session for a managed user
|
|
117
|
-
*/
|
|
118
|
-
createManagedUserEditorSession(requestParameters: CreateManagedUserEditorSession0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EditorSessionResponse>;
|
|
124
|
+
createCompositionFromPreset(requestParameters: CreateCompositionFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompositionResponse>;
|
|
119
125
|
/**
|
|
120
126
|
* Creates a new managed user for a partner account. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one managed user is created, not two.
|
|
121
127
|
* Create Managed User
|
|
122
128
|
*/
|
|
123
|
-
createManagedUserRaw(requestParameters:
|
|
129
|
+
createManagedUserRaw(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
|
|
124
130
|
/**
|
|
125
131
|
* Creates a new managed user for a partner account. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one managed user is created, not two.
|
|
126
132
|
* Create Managed User
|
|
127
133
|
*/
|
|
128
|
-
createManagedUser(requestParameters:
|
|
134
|
+
createManagedUser(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
|
|
137
|
+
* Create an editor session for a managed user
|
|
138
|
+
*/
|
|
139
|
+
createManagedUserEditorSessionRaw(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EditorSessionResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadFile`) and list the files uploaded for this user (`listUploads`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). For a widget that answers visitors\' questions from documents (the `ai-answers` adapter), it also lists those documents, adds one as text or as a file (a text file or a picture; a PDF once PDFs are read), and removes one (`getAiAnswersKnowledge`, `addAiAnswersKnowledgeDocument`, `addAiAnswersKnowledgeFile`, `removeAiAnswersKnowledgeDocument`); adding costs no credits, and is limited for each of your users separately. It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`listLlmModels`), open the widget\'s repository (`createRepository`, `getRepository`), start a generation and follow or cancel it (`generateCode`, `streamOperationUpdates`, `getOperation`, `cancelOperation`), build and preview the result (`getWidgetRepositoryHead`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`publishBuiltWidget`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`recognizeShape`, `resolveDesignProperty`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadFile`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. - `workflows`: use Widgetic\'s Workflows editor for this user. List their workflows and the compositions a workflow of theirs can chain (`listWorkspaceWorkflows`, `listWorkspaceWorkflowCompositionOptions`); list the starting points you offer them and make a workflow from one, which gives the user their own copy of every widget it chains, a composition of their own on each copy, and a draft (`listWorkspaceWorkflowPresets`, `createWorkspaceWorkflowFromPreset`; you offer them with `setPartnerWorkflowPreset`); make, open, change and delete one (`createWorkspaceWorkflow`, `getWorkspaceWorkflow`, `saveWorkspaceWorkflow`, `deleteWorkspaceWorkflow`) and copy it (`duplicateWorkspaceWorkflow`); publish it or discard the changes of its draft (`publishWorkspaceWorkflow`, `discardWorkspaceWorkflowChanges`); read and restore its versions (`listWorkspaceWorkflowVersions`, `getWorkspaceWorkflowVersion`, `restoreWorkspaceWorkflowVersion`); pause, resume, archive and unarchive it (`pauseWorkspaceWorkflow`, `resumeWorkspaceWorkflow`, `archiveWorkspaceWorkflow`, `unarchiveWorkspaceWorkflow`); and read its counts (`getWorkspaceWorkflowStats`). The workspace in each path is `personal`: a session has no other, and a path that names an organization is refused. What the session makes is filed for this managed user (`managedUserId`), the lists hold only this user\'s workflows, and it can reach only workflows made for this managed user; any other workflow, including one of yours or of another of your users, answers 404. A workflow can chain only the compositions you made for this managed user (tag them with `managedUserId`): one that belongs to anybody else is not available, and publishing a workflow that uses it is refused. A customer can have at most 50 workflows, and what a customer\'s session reads never says who published a version. A session cannot set who a workflow belongs to or which workspace it is in: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowedOrigin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `maxCredits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `maxCredits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
|
|
142
|
+
* Create an editor session for a managed user
|
|
143
|
+
*/
|
|
144
|
+
createManagedUserEditorSession(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EditorSessionResponse>;
|
|
129
145
|
/**
|
|
130
146
|
* Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
|
|
131
147
|
* Delete Managed User
|
|
132
148
|
*/
|
|
133
|
-
deleteManagedUserRaw(requestParameters:
|
|
149
|
+
deleteManagedUserRaw(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserRemovalResponse>>;
|
|
134
150
|
/**
|
|
135
151
|
* Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged.
|
|
136
152
|
* Delete Managed User
|
|
137
153
|
*/
|
|
138
|
-
deleteManagedUser(requestParameters:
|
|
154
|
+
deleteManagedUser(requestParameters: DeleteManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserRemovalResponse>;
|
|
139
155
|
/**
|
|
140
156
|
* Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
|
|
141
157
|
* Get Managed Users
|
|
142
158
|
*/
|
|
143
|
-
getAllManagedUsersRaw(requestParameters:
|
|
159
|
+
getAllManagedUsersRaw(requestParameters: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllManagedUsers200Response>>;
|
|
144
160
|
/**
|
|
145
161
|
* Retrieve the managed users you manage, with pagination support. (Admins see every partner\'s managed users.)
|
|
146
162
|
* Get Managed Users
|
|
147
163
|
*/
|
|
148
|
-
getAllManagedUsers(requestParameters?:
|
|
164
|
+
getAllManagedUsers(requestParameters?: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllManagedUsers200Response>;
|
|
149
165
|
/**
|
|
150
166
|
* Retrieves a specific managed user by ID.
|
|
151
167
|
* Get Managed User By ID
|
|
152
168
|
*/
|
|
153
|
-
getManagedUserByIdRaw(requestParameters:
|
|
169
|
+
getManagedUserByIdRaw(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
|
|
154
170
|
/**
|
|
155
171
|
* Retrieves a specific managed user by ID.
|
|
156
172
|
* Get Managed User By ID
|
|
157
173
|
*/
|
|
158
|
-
getManagedUserById(requestParameters:
|
|
174
|
+
getManagedUserById(requestParameters: GetManagedUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
|
|
159
175
|
/**
|
|
160
176
|
* Read design defaults for one managed user
|
|
161
177
|
*/
|
|
162
|
-
getManagedUserDesignDefaultsRaw(requestParameters:
|
|
178
|
+
getManagedUserDesignDefaultsRaw(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DesignDefaultsResponse>>;
|
|
163
179
|
/**
|
|
164
180
|
* Read design defaults for one managed user
|
|
165
181
|
*/
|
|
166
|
-
getManagedUserDesignDefaults(requestParameters:
|
|
182
|
+
getManagedUserDesignDefaults(requestParameters: GetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DesignDefaultsResponse>;
|
|
167
183
|
/**
|
|
168
184
|
* Read monthly credit cap and usage for one managed user
|
|
169
185
|
*/
|
|
170
|
-
getManagedUserLimitsRaw(requestParameters:
|
|
186
|
+
getManagedUserLimitsRaw(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserLimitsResponse>>;
|
|
171
187
|
/**
|
|
172
188
|
* Read monthly credit cap and usage for one managed user
|
|
173
189
|
*/
|
|
174
|
-
getManagedUserLimits(requestParameters:
|
|
190
|
+
getManagedUserLimits(requestParameters: GetManagedUserLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserLimitsResponse>;
|
|
175
191
|
/**
|
|
176
192
|
* Storage used by one managed user\'s uploads
|
|
177
193
|
*/
|
|
178
|
-
getManagedUserStorageUsageRaw(requestParameters:
|
|
194
|
+
getManagedUserStorageUsageRaw(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserStorageUsage200Response>>;
|
|
179
195
|
/**
|
|
180
196
|
* Storage used by one managed user\'s uploads
|
|
181
197
|
*/
|
|
182
|
-
getManagedUserStorageUsage(requestParameters:
|
|
198
|
+
getManagedUserStorageUsage(requestParameters: GetManagedUserStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserStorageUsage200Response>;
|
|
183
199
|
/**
|
|
184
200
|
* Says how many credits the editor sessions of one of your managed users took from your account over a period, in total and for each operation. A generation costs one credit, taken from your account when it starts; one that fails is refunded and is counted as refunded, not as spent. Only what was spent through editor sessions is here, and only since usage was first recorded: what you spend with your API key, and anything from before, is not. Use it to see which of your users spend the most, or to charge them for it. To hold one session to a number of credits, set `max_credits` when you make it (`createManagedUserEditorSession`). The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`.
|
|
185
201
|
* What a managed user\'s editor sessions spent
|
|
186
202
|
*/
|
|
187
|
-
getManagedUserUsageRaw(requestParameters:
|
|
203
|
+
getManagedUserUsageRaw(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserUsageResponse>>;
|
|
188
204
|
/**
|
|
189
205
|
* Says how many credits the editor sessions of one of your managed users took from your account over a period, in total and for each operation. A generation costs one credit, taken from your account when it starts; one that fails is refunded and is counted as refunded, not as spent. Only what was spent through editor sessions is here, and only since usage was first recorded: what you spend with your API key, and anything from before, is not. Use it to see which of your users spend the most, or to charge them for it. To hold one session to a number of credits, set `max_credits` when you make it (`createManagedUserEditorSession`). The period runs from `startDate` (included) to `endDate` (not included): the 30 days before now when you give neither, and at most 366 days. A date without a time is midnight UTC at the start of that day, so for all of October give `startDate=2026-10-01` and `endDate=2026-11-01`.
|
|
190
206
|
* What a managed user\'s editor sessions spent
|
|
191
207
|
*/
|
|
192
|
-
getManagedUserUsage(requestParameters:
|
|
208
|
+
getManagedUserUsage(requestParameters: GetManagedUserUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserUsageResponse>;
|
|
193
209
|
/**
|
|
194
210
|
* Retrieve managed users for a specific manager with pagination support.
|
|
195
211
|
* Get Managed Users By Manager
|
|
196
212
|
*/
|
|
197
|
-
getManagedUsersByManagerIdRaw(requestParameters:
|
|
213
|
+
getManagedUsersByManagerIdRaw(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUsersByManagerIdResponse>>;
|
|
198
214
|
/**
|
|
199
215
|
* Retrieve managed users for a specific manager with pagination support.
|
|
200
216
|
* Get Managed Users By Manager
|
|
201
217
|
*/
|
|
202
|
-
getManagedUsersByManagerId(requestParameters:
|
|
218
|
+
getManagedUsersByManagerId(requestParameters: GetManagedUsersByManagerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUsersByManagerIdResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
|
|
221
|
+
* List entries across a managed user\'s compositions
|
|
222
|
+
*/
|
|
223
|
+
listManagedUserEntriesRaw(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserEntriesPageSuccess>>;
|
|
224
|
+
/**
|
|
225
|
+
* Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
|
|
226
|
+
* List entries across a managed user\'s compositions
|
|
227
|
+
*/
|
|
228
|
+
listManagedUserEntries(requestParameters: ListManagedUserEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserEntriesPageSuccess>;
|
|
203
229
|
/**
|
|
204
230
|
* Ends the session at once: its token stops working on the next request (on another server of ours, within a few seconds). Ending a session that has already ended is fine.
|
|
205
231
|
* End one editor session of a managed user
|
|
206
232
|
*/
|
|
207
|
-
revokeManagedUserEditorSessionRaw(requestParameters:
|
|
233
|
+
revokeManagedUserEditorSessionRaw(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserRemovalResponse>>;
|
|
208
234
|
/**
|
|
209
235
|
* Ends the session at once: its token stops working on the next request (on another server of ours, within a few seconds). Ending a session that has already ended is fine.
|
|
210
236
|
* End one editor session of a managed user
|
|
211
237
|
*/
|
|
212
|
-
revokeManagedUserEditorSession(requestParameters:
|
|
238
|
+
revokeManagedUserEditorSession(requestParameters: RevokeManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserRemovalResponse>;
|
|
213
239
|
/**
|
|
214
240
|
* Ends all of the managed user\'s live editor sessions at once, for example when the user signs out of your platform. Their tokens stop working on the next request (on another server of ours, within a few seconds). It is fine to call it for a user who has none.
|
|
215
241
|
* End every editor session of a managed user
|
|
216
242
|
*/
|
|
217
|
-
revokeManagedUserEditorSessionsRaw(requestParameters:
|
|
243
|
+
revokeManagedUserEditorSessionsRaw(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevokeManagedUserEditorSessionsResponse>>;
|
|
218
244
|
/**
|
|
219
245
|
* Ends all of the managed user\'s live editor sessions at once, for example when the user signs out of your platform. Their tokens stop working on the next request (on another server of ours, within a few seconds). It is fine to call it for a user who has none.
|
|
220
246
|
* End every editor session of a managed user
|
|
221
247
|
*/
|
|
222
|
-
revokeManagedUserEditorSessions(requestParameters:
|
|
248
|
+
revokeManagedUserEditorSessions(requestParameters: RevokeManagedUserEditorSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevokeManagedUserEditorSessionsResponse>;
|
|
223
249
|
/**
|
|
224
250
|
* Send `{ \"design\": { ... } }` to store a JSON object (at most 64 KB, nesting depth 32), or `{ \"design\": null }` to remove the override. New compositions for this customer merge this layer over the partner default and under the request body.
|
|
225
251
|
* Set or clear design defaults for one managed user
|
|
226
252
|
*/
|
|
227
|
-
setManagedUserDesignDefaultsRaw(requestParameters:
|
|
253
|
+
setManagedUserDesignDefaultsRaw(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DesignDefaultsResponse>>;
|
|
228
254
|
/**
|
|
229
255
|
* Send `{ \"design\": { ... } }` to store a JSON object (at most 64 KB, nesting depth 32), or `{ \"design\": null }` to remove the override. New compositions for this customer merge this layer over the partner default and under the request body.
|
|
230
256
|
* Set or clear design defaults for one managed user
|
|
231
257
|
*/
|
|
232
|
-
setManagedUserDesignDefaults(requestParameters:
|
|
258
|
+
setManagedUserDesignDefaults(requestParameters: SetManagedUserDesignDefaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DesignDefaultsResponse>;
|
|
233
259
|
/**
|
|
234
260
|
* Send monthlyCredits as a whole number from 0 up to 2147483647 to cap what this customer\'s editor sessions may spend in a UTC calendar month, or null to remove the cap. The cap counts the credits the customer\'s sessions spent that month (refunded credits do not count) and applies to all of the customer\'s sessions together, beside any `max_credits` a single session was given. A cap of 0 stops all paid work by this customer until you raise it. The cap starts counting from the first of the month (UTC); a cap set below what was already spent this month stops further work at once.
|
|
235
261
|
* Set or clear the monthly credit cap for one managed user
|
|
236
262
|
*/
|
|
237
|
-
setManagedUserLimitsRaw(requestParameters:
|
|
263
|
+
setManagedUserLimitsRaw(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserLimitsResponse>>;
|
|
238
264
|
/**
|
|
239
265
|
* Send monthlyCredits as a whole number from 0 up to 2147483647 to cap what this customer\'s editor sessions may spend in a UTC calendar month, or null to remove the cap. The cap counts the credits the customer\'s sessions spent that month (refunded credits do not count) and applies to all of the customer\'s sessions together, beside any `max_credits` a single session was given. A cap of 0 stops all paid work by this customer until you raise it. The cap starts counting from the first of the month (UTC); a cap set below what was already spent this month stops further work at once.
|
|
240
266
|
* Set or clear the monthly credit cap for one managed user
|
|
241
267
|
*/
|
|
242
|
-
setManagedUserLimits(requestParameters:
|
|
268
|
+
setManagedUserLimits(requestParameters: SetManagedUserLimitsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserLimitsResponse>;
|
|
243
269
|
/**
|
|
244
270
|
* Updates an existing managed user. Only `externalId`, `metadata` and `isActive` can change, and `metadata` is replaced as a whole, so send all of it. `isActive: false` switches the managed user off: what it already has stays, and nothing new can be filed under it until you send `isActive: true`. Switching it off also ends all of its editor sessions, and they do not come back when you switch it on again. The `Idempotency-Key` header is required (`400` without it).
|
|
245
271
|
* Update Managed User
|
|
246
272
|
*/
|
|
247
|
-
updateManagedUserRaw(requestParameters:
|
|
273
|
+
updateManagedUserRaw(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedUserResponse>>;
|
|
248
274
|
/**
|
|
249
275
|
* Updates an existing managed user. Only `externalId`, `metadata` and `isActive` can change, and `metadata` is replaced as a whole, so send all of it. `isActive: false` switches the managed user off: what it already has stays, and nothing new can be filed under it until you send `isActive: true`. Switching it off also ends all of its editor sessions, and they do not come back when you switch it on again. The `Idempotency-Key` header is required (`400` without it).
|
|
250
276
|
* Update Managed User
|
|
251
277
|
*/
|
|
252
|
-
updateManagedUser(requestParameters:
|
|
278
|
+
updateManagedUser(requestParameters: UpdateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUserResponse>;
|
|
253
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* @export
|
|
282
|
+
*/
|
|
283
|
+
export declare const ListManagedUserEntriesOrderEnum: {
|
|
284
|
+
readonly Asc: 'asc';
|
|
285
|
+
readonly Desc: 'desc';
|
|
286
|
+
};
|
|
287
|
+
export type ListManagedUserEntriesOrderEnum = typeof ListManagedUserEntriesOrderEnum[keyof typeof ListManagedUserEntriesOrderEnum];
|