@widgetic/api-sdk-ts 1.11.111 → 1.11.151
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 +42 -42
- package/dist/apis/BrandKitApi.js +42 -42
- package/dist/apis/CanvasesApi.d.ts +15 -15
- package/dist/apis/CompositionsApi.d.ts +257 -155
- package/dist/apis/CompositionsApi.js +338 -134
- package/dist/apis/CreditsApi.d.ts +11 -11
- package/dist/apis/CreditsApi.js +5 -5
- 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/OrganizationsApi.d.ts +74 -0
- package/dist/apis/OrganizationsApi.js +205 -0
- package/dist/apis/PartnersApi.d.ts +133 -133
- package/dist/apis/PartnersApi.js +19 -19
- package/dist/apis/PublicEmbedApi.d.ts +57 -42
- package/dist/apis/PublicEmbedApi.js +64 -29
- package/dist/apis/TokensApi.d.ts +2 -0
- package/dist/apis/TokensApi.js +2 -0
- package/dist/apis/UploadsApi.d.ts +40 -40
- package/dist/apis/UploadsApi.js +60 -60
- package/dist/apis/UsersApi.d.ts +30 -86
- package/dist/apis/UsersApi.js +6 -154
- package/dist/apis/WidgetsApi.d.ts +25 -25
- package/dist/apis/WidgetsApi.js +38 -38
- package/dist/apis/WorkflowsApi.d.ts +115 -157
- package/dist/apis/WorkflowsApi.js +111 -221
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/esm/apis/BrandKitApi.js +41 -41
- package/dist/esm/apis/CompositionsApi.js +338 -134
- package/dist/esm/apis/CreditsApi.js +6 -6
- 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/OrganizationsApi.js +168 -0
- package/dist/esm/apis/PartnersApi.js +20 -20
- package/dist/esm/apis/PublicEmbedApi.js +65 -30
- package/dist/esm/apis/TokensApi.js +2 -0
- package/dist/esm/apis/UploadsApi.js +60 -60
- package/dist/esm/apis/UsersApi.js +7 -155
- package/dist/esm/apis/WidgetsApi.js +39 -39
- package/dist/esm/apis/WorkflowsApi.js +111 -221
- 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/AddOrganizationDomainResponse.js +51 -0
- package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
- package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
- package/dist/esm/models/BrandKitTokens.js +3 -0
- package/dist/esm/models/BrandTextStyle.js +65 -0
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -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/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/{CreateCompositionFromWidget201Response.js → DeleteOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
- 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/EditorSession.js +4 -0
- package/dist/esm/models/GetOperationResponse.js +51 -0
- package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
- package/dist/esm/models/GetOperationResponseDataMetadata.js +69 -0
- package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
- 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/NewWidget.js +0 -1
- package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
- package/dist/esm/models/PatchBrandKitRequest.js +3 -0
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
- package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
- package/dist/esm/models/UpdateOrganizationDomainResponse.js +51 -0
- package/dist/esm/models/Upload.js +2 -0
- package/dist/esm/models/UserApiKey.js +2 -0
- package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
- package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
- package/dist/esm/models/Widget.js +6 -0
- package/dist/esm/models/WidgetClarification.js +52 -0
- package/dist/esm/models/WidgetClarificationOption.js +51 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +64 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +71 -0
- package/dist/esm/models/WidgetPlan.js +61 -0
- package/dist/esm/models/WidgetPlanDecisions.js +72 -0
- package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
- package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
- package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
- package/dist/esm/models/WidgetPlanTask.js +80 -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 +43 -25
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- 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/AddOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/AddOrganizationDomainResponse.js +58 -0
- package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
- package/dist/models/AddOrganizationDomainResponseData.js +51 -0
- package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
- package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
- package/dist/models/BrandKitTokens.d.ts +8 -1
- package/dist/models/BrandKitTokens.js +3 -0
- package/dist/models/BrandKitView.d.ts +1 -1
- package/dist/models/BrandTextStyle.d.ts +59 -0
- package/dist/models/BrandTextStyle.js +73 -0
- package/dist/models/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -0
- package/dist/models/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/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
- package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
- package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
- package/dist/models/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/EditorSession.d.ts +7 -0
- package/dist/models/EditorSession.js +4 -0
- package/dist/models/GetOperationResponse.d.ts +46 -0
- package/dist/models/GetOperationResponse.js +58 -0
- package/dist/models/GetOperationResponseData.d.ts +86 -0
- package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
- package/dist/models/GetOperationResponseDataMetadata.d.ts +87 -0
- package/dist/models/GetOperationResponseDataMetadata.js +77 -0
- package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
- package/dist/models/GetOrganizationDomains200Response.js +58 -0
- 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/NewEditorSession.d.ts +1 -1
- package/dist/models/NewWidget.d.ts +2 -3
- package/dist/models/NewWidget.js +0 -1
- package/dist/models/OrganizationDomain.d.ts +56 -0
- package/dist/models/OrganizationDomain.js +56 -0
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
- package/dist/models/PatchBrandKitRequest.d.ts +7 -0
- package/dist/models/PatchBrandKitRequest.js +3 -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/UpdateOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
- package/dist/models/Upload.d.ts +7 -1
- package/dist/models/Upload.js +2 -0
- package/dist/models/UploadLimits.d.ts +3 -3
- package/dist/models/UserApiKey.d.ts +6 -0
- package/dist/models/UserApiKey.js +2 -0
- package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
- package/dist/models/ValidateToken200ResponseData.js +3 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
- package/dist/models/Widget.d.ts +18 -0
- package/dist/models/Widget.js +6 -0
- package/dist/models/WidgetClarification.d.ts +45 -0
- package/dist/models/WidgetClarification.js +59 -0
- package/dist/models/WidgetClarificationOption.d.ts +44 -0
- package/dist/models/WidgetClarificationOption.js +58 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +63 -0
- package/dist/models/WidgetClarificationQuestion.js +71 -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 +69 -0
- package/dist/models/WidgetNextStep.js +79 -0
- package/dist/models/WidgetPlan.d.ts +58 -0
- package/dist/models/WidgetPlan.js +68 -0
- package/dist/models/WidgetPlanDecisions.d.ts +77 -0
- package/dist/models/WidgetPlanDecisions.js +79 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
- package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
- package/dist/models/WidgetPlanTask.d.ts +77 -0
- package/dist/models/WidgetPlanTask.js +88 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- 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 +43 -25
- package/dist/models/index.js +43 -25
- 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 -2707
- package/dist/apis/PartnerApi.js +0 -7073
- package/dist/apis/WorkspacesApi.d.ts +0 -352
- package/dist/apis/WorkspacesApi.js +0 -946
- package/dist/esm/apis/PartnerApi.js +0 -7036
- package/dist/esm/apis/WorkspacesApi.js +0 -909
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +0 -51
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
- package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +0 -51
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
- package/dist/esm/models/PersonalWorkspaceDomainResultResponse.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/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
- package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
- package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
- 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/OperationsIdGetResponseData.d.ts +0 -88
- package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
- package/dist/models/PersonalWorkspaceDomain.js +0 -62
- package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
- package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
- package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
- package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
- 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;
|
|
@@ -25,23 +25,23 @@ export interface GetUserCreditTransactions0Request {
|
|
|
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 default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'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 the balance of the partner\'s workspace 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
|
-
* 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 default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'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 the balance of the partner\'s workspace 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
|
-
* 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
|
-
getUserCreditTransactionsRaw(requestParameters:
|
|
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
|
-
getUserCreditTransactions(requestParameters:
|
|
46
|
+
getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
|
|
47
47
|
}
|
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 default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'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 the balance of the partner\'s workspace 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 default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'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 the balance of the partner\'s workspace 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) {
|
|
@@ -118,10 +118,10 @@ 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
|
-
* 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) {
|
|
@@ -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',
|