@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
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PublicWorkflowEventsRequestEventsInnerKEnum = void 0;
|
|
16
|
+
exports.PublicWorkflowEventsRequestEventsInnerREnum = exports.PublicWorkflowEventsRequestEventsInnerKEnum = void 0;
|
|
17
17
|
exports.instanceOfPublicWorkflowEventsRequestEventsInner = instanceOfPublicWorkflowEventsRequestEventsInner;
|
|
18
18
|
exports.PublicWorkflowEventsRequestEventsInnerFromJSON = PublicWorkflowEventsRequestEventsInnerFromJSON;
|
|
19
19
|
exports.PublicWorkflowEventsRequestEventsInnerFromJSONTyped = PublicWorkflowEventsRequestEventsInnerFromJSONTyped;
|
|
@@ -27,6 +27,15 @@ exports.PublicWorkflowEventsRequestEventsInnerKEnum = {
|
|
|
27
27
|
E: 'e',
|
|
28
28
|
F: 'f'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.PublicWorkflowEventsRequestEventsInnerREnum = {
|
|
34
|
+
T: 't',
|
|
35
|
+
E: 'e',
|
|
36
|
+
B: 'b',
|
|
37
|
+
O: 'o'
|
|
38
|
+
};
|
|
30
39
|
/**
|
|
31
40
|
* Check if a given object implements the PublicWorkflowEventsRequestEventsInner interface.
|
|
32
41
|
*/
|
|
@@ -48,6 +57,7 @@ function PublicWorkflowEventsRequestEventsInnerFromJSONTyped(json, ignoreDiscrim
|
|
|
48
57
|
'k': json['k'],
|
|
49
58
|
'id': json['id'],
|
|
50
59
|
'c': json['c'] == null ? undefined : json['c'],
|
|
60
|
+
'r': json['r'] == null ? undefined : json['r'],
|
|
51
61
|
};
|
|
52
62
|
}
|
|
53
63
|
function PublicWorkflowEventsRequestEventsInnerToJSON(json) {
|
|
@@ -61,5 +71,6 @@ function PublicWorkflowEventsRequestEventsInnerToJSONTyped(value, ignoreDiscrimi
|
|
|
61
71
|
'k': value['k'],
|
|
62
72
|
'id': value['id'],
|
|
63
73
|
'c': value['c'],
|
|
74
|
+
'r': value['r'],
|
|
64
75
|
};
|
|
65
76
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PublicWorkflow } from './PublicWorkflow';
|
|
13
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicWorkflowResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicWorkflowResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PublicWorkflowResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PublicWorkflow}
|
|
29
|
+
* @memberof PublicWorkflowResponse
|
|
30
|
+
*/
|
|
31
|
+
data: PublicWorkflow;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof PublicWorkflowResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PublicWorkflowResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPublicWorkflowResponse(value: object): value is PublicWorkflowResponse;
|
|
43
|
+
export declare function PublicWorkflowResponseFromJSON(json: any): PublicWorkflowResponse;
|
|
44
|
+
export declare function PublicWorkflowResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicWorkflowResponse;
|
|
45
|
+
export declare function PublicWorkflowResponseToJSON(json: any): PublicWorkflowResponse;
|
|
46
|
+
export declare function PublicWorkflowResponseToJSONTyped(value?: PublicWorkflowResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfPublicWorkflowResponse = instanceOfPublicWorkflowResponse;
|
|
17
|
+
exports.PublicWorkflowResponseFromJSON = PublicWorkflowResponseFromJSON;
|
|
18
|
+
exports.PublicWorkflowResponseFromJSONTyped = PublicWorkflowResponseFromJSONTyped;
|
|
19
|
+
exports.PublicWorkflowResponseToJSON = PublicWorkflowResponseToJSON;
|
|
20
|
+
exports.PublicWorkflowResponseToJSONTyped = PublicWorkflowResponseToJSONTyped;
|
|
21
21
|
const PublicWorkflow_1 = require("./PublicWorkflow");
|
|
22
22
|
const ResponseMeta_1 = require("./ResponseMeta");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the PublicWorkflowResponse interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfPublicWorkflowResponse(value) {
|
|
27
27
|
if (!('success' in value) || value['success'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('data' in value) || value['data'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function PublicWorkflowResponseFromJSON(json) {
|
|
34
|
+
return PublicWorkflowResponseFromJSONTyped(json, false);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function PublicWorkflowResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
@@ -43,10 +43,10 @@ function GetPublicWorkflow200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function PublicWorkflowResponseToJSON(json) {
|
|
47
|
+
return PublicWorkflowResponseToJSONTyped(json, false);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function PublicWorkflowResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
50
|
if (value == null) {
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
13
|
+
import type { AddOrganizationDomainResponseData } from './AddOrganizationDomainResponseData';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateOrganizationDomainResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateOrganizationDomainResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Always `true` on a success.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof UpdateOrganizationDomainResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {AddOrganizationDomainResponseData}
|
|
29
|
+
* @memberof UpdateOrganizationDomainResponse
|
|
30
|
+
*/
|
|
31
|
+
data: AddOrganizationDomainResponseData;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof UpdateOrganizationDomainResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the UpdateOrganizationDomainResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfUpdateOrganizationDomainResponse(value: object): value is UpdateOrganizationDomainResponse;
|
|
43
|
+
export declare function UpdateOrganizationDomainResponseFromJSON(json: any): UpdateOrganizationDomainResponse;
|
|
44
|
+
export declare function UpdateOrganizationDomainResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganizationDomainResponse;
|
|
45
|
+
export declare function UpdateOrganizationDomainResponseToJSON(json: any): UpdateOrganizationDomainResponse;
|
|
46
|
+
export declare function UpdateOrganizationDomainResponseToJSONTyped(value?: UpdateOrganizationDomainResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateOrganizationDomainResponse = instanceOfUpdateOrganizationDomainResponse;
|
|
17
|
+
exports.UpdateOrganizationDomainResponseFromJSON = UpdateOrganizationDomainResponseFromJSON;
|
|
18
|
+
exports.UpdateOrganizationDomainResponseFromJSONTyped = UpdateOrganizationDomainResponseFromJSONTyped;
|
|
19
|
+
exports.UpdateOrganizationDomainResponseToJSON = UpdateOrganizationDomainResponseToJSON;
|
|
20
|
+
exports.UpdateOrganizationDomainResponseToJSONTyped = UpdateOrganizationDomainResponseToJSONTyped;
|
|
21
|
+
const ResponseMeta_1 = require("./ResponseMeta");
|
|
22
|
+
const AddOrganizationDomainResponseData_1 = require("./AddOrganizationDomainResponseData");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdateOrganizationDomainResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdateOrganizationDomainResponse(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UpdateOrganizationDomainResponseFromJSON(json) {
|
|
34
|
+
return UpdateOrganizationDomainResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UpdateOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'data': (0, AddOrganizationDomainResponseData_1.AddOrganizationDomainResponseDataFromJSON)(json['data']),
|
|
43
|
+
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UpdateOrganizationDomainResponseToJSON(json) {
|
|
47
|
+
return UpdateOrganizationDomainResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UpdateOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'success': value['success'],
|
|
55
|
+
'data': (0, AddOrganizationDomainResponseData_1.AddOrganizationDomainResponseDataToJSON)(value['data']),
|
|
56
|
+
'meta': (0, ResponseMeta_1.ResponseMetaToJSON)(value['meta']),
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/Upload.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export interface Upload {
|
|
|
88
88
|
*/
|
|
89
89
|
conversation_id?: string | null;
|
|
90
90
|
/**
|
|
91
|
-
* The managed user the file was uploaded for, or null when it is the account's own. List one managed user's files with the `managed_user_id` or `managed_user_external_id` query parameter of `
|
|
91
|
+
* The managed user the file was uploaded for, or null when it is the account's own. List one managed user's files with the `managed_user_id` or `managed_user_external_id` query parameter of `listUploads`.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof Upload
|
|
94
94
|
*/
|
|
@@ -99,6 +99,12 @@ export interface Upload {
|
|
|
99
99
|
* @memberof Upload
|
|
100
100
|
*/
|
|
101
101
|
purpose?: UploadPurposeEnum | null;
|
|
102
|
+
/**
|
|
103
|
+
* The Media Library folder the file belongs to when it is part of the brand kit (for example `Brand kit/Fonts/Inter` or `Brand kit/Logos`), or null for every other file
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof Upload
|
|
106
|
+
*/
|
|
107
|
+
library_folder_path?: string | null;
|
|
102
108
|
}
|
|
103
109
|
/**
|
|
104
110
|
* @export
|
package/dist/models/Upload.js
CHANGED
|
@@ -90,6 +90,7 @@ function UploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
90
|
'conversation_id': json['conversation_id'] == null ? undefined : json['conversation_id'],
|
|
91
91
|
'managed_user_id': json['managed_user_id'] == null ? undefined : json['managed_user_id'],
|
|
92
92
|
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
93
|
+
'library_folder_path': json['library_folder_path'] == null ? undefined : json['library_folder_path'],
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
function UploadToJSON(json) {
|
|
@@ -114,5 +115,6 @@ function UploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
114
115
|
'conversation_id': value['conversation_id'],
|
|
115
116
|
'managed_user_id': value['managed_user_id'],
|
|
116
117
|
'purpose': value['purpose'],
|
|
118
|
+
'library_folder_path': value['library_folder_path'],
|
|
117
119
|
};
|
|
118
120
|
}
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UploadLimits {
|
|
18
18
|
/**
|
|
19
|
-
* The largest file `
|
|
19
|
+
* The largest file `uploadFile` takes in one request, in bytes. The same for every account.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof UploadLimits
|
|
22
22
|
*/
|
|
23
23
|
multipart_max_bytes?: number;
|
|
24
24
|
/**
|
|
25
|
-
* The file types `
|
|
25
|
+
* The file types `uploadFile` takes for media (`content-property` uploads)
|
|
26
26
|
* @type {Array<string>}
|
|
27
27
|
* @memberof UploadLimits
|
|
28
28
|
*/
|
|
29
29
|
multipart_mime_types?: Array<string>;
|
|
30
30
|
/**
|
|
31
|
-
* Whether resumable uploads are switched on. They need a signed-in session; an API key uses `
|
|
31
|
+
* Whether resumable uploads are switched on. They need a signed-in session; an API key uses `uploadFile`.
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof UploadLimits
|
|
34
34
|
*/
|
|
@@ -58,6 +58,12 @@ export interface UserApiKey {
|
|
|
58
58
|
* @memberof UserApiKey
|
|
59
59
|
*/
|
|
60
60
|
isActive: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Only on a key a customer made before workspace keys replaced them: the workspace it was made for. The key works in that workspace and nowhere else, whichever workspace its owner is signed in to on widgetic.com. Absent for a key of a partner or staff account, which are the only personal keys made now
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof UserApiKey
|
|
65
|
+
*/
|
|
66
|
+
organizationId?: string;
|
|
61
67
|
/**
|
|
62
68
|
* What the key may do. A key with full access holds every scope. The scopes of a key are fixed when it is made
|
|
63
69
|
* @type {Array<ApiKeyScope>}
|
|
@@ -64,6 +64,7 @@ function UserApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
65
65
|
'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
|
|
66
66
|
'isActive': json['isActive'],
|
|
67
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
67
68
|
'scopes': (json['scopes'].map(ApiKeyScope_1.ApiKeyScopeFromJSON)),
|
|
68
69
|
'preset': json['preset'],
|
|
69
70
|
};
|
|
@@ -83,6 +84,7 @@ function UserApiKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
84
|
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
84
85
|
'lastUsedAt': value['lastUsedAt'] == null ? undefined : (value['lastUsedAt'].toISOString()),
|
|
85
86
|
'isActive': value['isActive'],
|
|
87
|
+
'organizationId': value['organizationId'],
|
|
86
88
|
'scopes': (value['scopes'].map(ApiKeyScope_1.ApiKeyScopeToJSON)),
|
|
87
89
|
'preset': value['preset'],
|
|
88
90
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ValidateToken200ResponseDataWorkspace } from './ValidateToken200ResponseDataWorkspace';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface ValidateToken200ResponseData {
|
|
|
45
46
|
* @memberof ValidateToken200ResponseData
|
|
46
47
|
*/
|
|
47
48
|
expiresAt?: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ValidateToken200ResponseDataWorkspace}
|
|
52
|
+
* @memberof ValidateToken200ResponseData
|
|
53
|
+
*/
|
|
54
|
+
workspace?: ValidateToken200ResponseDataWorkspace | null;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.ValidateToken200ResponseDataFromJSON = ValidateToken200ResponseDataFromJ
|
|
|
19
19
|
exports.ValidateToken200ResponseDataFromJSONTyped = ValidateToken200ResponseDataFromJSONTyped;
|
|
20
20
|
exports.ValidateToken200ResponseDataToJSON = ValidateToken200ResponseDataToJSON;
|
|
21
21
|
exports.ValidateToken200ResponseDataToJSONTyped = ValidateToken200ResponseDataToJSONTyped;
|
|
22
|
+
const ValidateToken200ResponseDataWorkspace_1 = require("./ValidateToken200ResponseDataWorkspace");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -46,6 +47,7 @@ function ValidateToken200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'scopes': json['scopes'] == null ? undefined : json['scopes'],
|
|
47
48
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
48
49
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
50
|
+
'workspace': json['workspace'] == null ? undefined : (0, ValidateToken200ResponseDataWorkspace_1.ValidateToken200ResponseDataWorkspaceFromJSON)(json['workspace']),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
function ValidateToken200ResponseDataToJSON(json) {
|
|
@@ -61,5 +63,6 @@ function ValidateToken200ResponseDataToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
61
63
|
'scopes': value['scopes'],
|
|
62
64
|
'userId': value['userId'],
|
|
63
65
|
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
66
|
+
'workspace': (0, ValidateToken200ResponseDataWorkspace_1.ValidateToken200ResponseDataWorkspaceToJSON)(value['workspace']),
|
|
64
67
|
};
|
|
65
68
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The workspace the credential works in: the one an API key was made for. Null for a credential that names none (a signed-in session follows the person's workspace choice).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidateToken200ResponseDataWorkspace
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidateToken200ResponseDataWorkspace {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ValidateToken200ResponseDataWorkspace
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The workspace's name; null when it could not be read just now.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ValidateToken200ResponseDataWorkspace
|
|
28
|
+
*/
|
|
29
|
+
name?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ValidateToken200ResponseDataWorkspace interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfValidateToken200ResponseDataWorkspace(value: object): value is ValidateToken200ResponseDataWorkspace;
|
|
35
|
+
export declare function ValidateToken200ResponseDataWorkspaceFromJSON(json: any): ValidateToken200ResponseDataWorkspace;
|
|
36
|
+
export declare function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateToken200ResponseDataWorkspace;
|
|
37
|
+
export declare function ValidateToken200ResponseDataWorkspaceToJSON(json: any): ValidateToken200ResponseDataWorkspace;
|
|
38
|
+
export declare function ValidateToken200ResponseDataWorkspaceToJSONTyped(value?: ValidateToken200ResponseDataWorkspace | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfValidateToken200ResponseDataWorkspace = instanceOfValidateToken200ResponseDataWorkspace;
|
|
17
|
+
exports.ValidateToken200ResponseDataWorkspaceFromJSON = ValidateToken200ResponseDataWorkspaceFromJSON;
|
|
18
|
+
exports.ValidateToken200ResponseDataWorkspaceFromJSONTyped = ValidateToken200ResponseDataWorkspaceFromJSONTyped;
|
|
19
|
+
exports.ValidateToken200ResponseDataWorkspaceToJSON = ValidateToken200ResponseDataWorkspaceToJSON;
|
|
20
|
+
exports.ValidateToken200ResponseDataWorkspaceToJSONTyped = ValidateToken200ResponseDataWorkspaceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ValidateToken200ResponseDataWorkspace interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfValidateToken200ResponseDataWorkspace(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ValidateToken200ResponseDataWorkspaceFromJSON(json) {
|
|
28
|
+
return ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ValidateToken200ResponseDataWorkspaceToJSON(json) {
|
|
40
|
+
return ValidateToken200ResponseDataWorkspaceToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ValidateToken200ResponseDataWorkspaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/Widget.d.ts
CHANGED
|
@@ -89,6 +89,12 @@ export interface Widget {
|
|
|
89
89
|
* @memberof Widget
|
|
90
90
|
*/
|
|
91
91
|
jsPath?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* A small line drawing of the widget, as an SVG on a 32 x 32 canvas (a few flat shapes only, drawn in currentColor, no script, style, text, link or image). Show it as a mask, 32 pixels wide, in the middle of the standard grey tile, in the darker grey. Null until one is drawn.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof Widget
|
|
96
|
+
*/
|
|
97
|
+
thumbnailSvg?: string | null;
|
|
92
98
|
/**
|
|
93
99
|
* ID of the canvas associated with this widget.
|
|
94
100
|
* @type {string}
|
|
@@ -119,6 +125,18 @@ export interface Widget {
|
|
|
119
125
|
* @memberof Widget
|
|
120
126
|
*/
|
|
121
127
|
lastCommitSha?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* True when the widget was published at least once and the latest saved commit differs from the published commit. Never-published drafts are false.
|
|
130
|
+
* @type {boolean}
|
|
131
|
+
* @memberof Widget
|
|
132
|
+
*/
|
|
133
|
+
hasUnpublishedChanges?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* ISO timestamp of the last publish, or null when the widget was never published.
|
|
136
|
+
* @type {Date}
|
|
137
|
+
* @memberof Widget
|
|
138
|
+
*/
|
|
139
|
+
publishedAt?: Date | null;
|
|
122
140
|
/**
|
|
123
141
|
* Organization ID if created in an organization workspace.
|
|
124
142
|
* @type {string}
|
package/dist/models/Widget.js
CHANGED
|
@@ -52,11 +52,14 @@ function WidgetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
53
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
54
54
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
55
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
55
56
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
56
57
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
57
58
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
58
59
|
'version': json['version'] == null ? undefined : json['version'],
|
|
59
60
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
61
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
62
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
60
63
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
61
64
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
62
65
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -83,11 +86,14 @@ function WidgetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
86
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
84
87
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
85
88
|
'jsPath': value['jsPath'],
|
|
89
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
86
90
|
'canvasId': value['canvasId'],
|
|
87
91
|
'repoId': value['repoId'],
|
|
88
92
|
'databaseId': value['databaseId'],
|
|
89
93
|
'version': value['version'],
|
|
90
94
|
'lastCommitSha': value['lastCommitSha'],
|
|
95
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
96
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
91
97
|
'organizationId': value['organizationId'],
|
|
92
98
|
'projectFolder': value['projectFolder'],
|
|
93
99
|
'workspaceType': value['workspaceType'],
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { WidgetClarificationQuestion } from './WidgetClarificationQuestion';
|
|
13
|
+
/**
|
|
14
|
+
* The card of questions the assistant puts to the person before building, in `metadata.clarification` of an operation that completed with `metadata.outcome` `needs_answers`. Nothing was built and the credit was returned. The same words are saved in the chat as a plain-text assistant message.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetClarification
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetClarification {
|
|
19
|
+
/**
|
|
20
|
+
* The sentence that introduces the card.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WidgetClarification
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<WidgetClarificationQuestion>}
|
|
28
|
+
* @memberof WidgetClarification
|
|
29
|
+
*/
|
|
30
|
+
questions: Array<WidgetClarificationQuestion>;
|
|
31
|
+
/**
|
|
32
|
+
* The paths of the widget's files the questions were judged against, for a "Read N files" row.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof WidgetClarification
|
|
35
|
+
*/
|
|
36
|
+
filesRead: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the WidgetClarification interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfWidgetClarification(value: object): value is WidgetClarification;
|
|
42
|
+
export declare function WidgetClarificationFromJSON(json: any): WidgetClarification;
|
|
43
|
+
export declare function WidgetClarificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarification;
|
|
44
|
+
export declare function WidgetClarificationToJSON(json: any): WidgetClarification;
|
|
45
|
+
export declare function WidgetClarificationToJSONTyped(value?: WidgetClarification | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWidgetClarification = instanceOfWidgetClarification;
|
|
17
|
+
exports.WidgetClarificationFromJSON = WidgetClarificationFromJSON;
|
|
18
|
+
exports.WidgetClarificationFromJSONTyped = WidgetClarificationFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationToJSON = WidgetClarificationToJSON;
|
|
20
|
+
exports.WidgetClarificationToJSONTyped = WidgetClarificationToJSONTyped;
|
|
21
|
+
const WidgetClarificationQuestion_1 = require("./WidgetClarificationQuestion");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetClarification interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetClarification(value) {
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('filesRead' in value) || value['filesRead'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function WidgetClarificationFromJSON(json) {
|
|
35
|
+
return WidgetClarificationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function WidgetClarificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'message': json['message'],
|
|
43
|
+
'questions': (json['questions'].map(WidgetClarificationQuestion_1.WidgetClarificationQuestionFromJSON)),
|
|
44
|
+
'filesRead': json['filesRead'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function WidgetClarificationToJSON(json) {
|
|
48
|
+
return WidgetClarificationToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function WidgetClarificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'questions': (value['questions'].map(WidgetClarificationQuestion_1.WidgetClarificationQuestionToJSON)),
|
|
57
|
+
'filesRead': value['filesRead'],
|
|
58
|
+
};
|
|
59
|
+
}
|