@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
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetClarificationOption
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetClarificationOption {
|
|
18
|
+
/**
|
|
19
|
+
* `q1o1`, `q1o2`, ... Stable within the card.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetClarificationOption
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The option text, at most 60 characters, including the parenthesised recommendation word on the recommended option (for example `Three plans (Recommended)`).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetClarificationOption
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* True for the one option the assistant recommends. It is always the first option when set. The server composes the recommendation word into `label`; clients may still draw a badge.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WidgetClarificationOption
|
|
34
|
+
*/
|
|
35
|
+
recommended: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WidgetClarificationOption interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWidgetClarificationOption(value: object): value is WidgetClarificationOption;
|
|
41
|
+
export declare function WidgetClarificationOptionFromJSON(json: any): WidgetClarificationOption;
|
|
42
|
+
export declare function WidgetClarificationOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarificationOption;
|
|
43
|
+
export declare function WidgetClarificationOptionToJSON(json: any): WidgetClarificationOption;
|
|
44
|
+
export declare function WidgetClarificationOptionToJSONTyped(value?: WidgetClarificationOption | 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.instanceOfWidgetClarificationOption = instanceOfWidgetClarificationOption;
|
|
17
|
+
exports.WidgetClarificationOptionFromJSON = WidgetClarificationOptionFromJSON;
|
|
18
|
+
exports.WidgetClarificationOptionFromJSONTyped = WidgetClarificationOptionFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationOptionToJSON = WidgetClarificationOptionToJSON;
|
|
20
|
+
exports.WidgetClarificationOptionToJSONTyped = WidgetClarificationOptionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WidgetClarificationOption interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWidgetClarificationOption(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function WidgetClarificationOptionFromJSON(json) {
|
|
34
|
+
return WidgetClarificationOptionFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function WidgetClarificationOptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'label': json['label'],
|
|
43
|
+
'recommended': json['recommended'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function WidgetClarificationOptionToJSON(json) {
|
|
47
|
+
return WidgetClarificationOptionToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function WidgetClarificationOptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'label': value['label'],
|
|
56
|
+
'recommended': value['recommended'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { WidgetClarificationOption } from './WidgetClarificationOption';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetClarificationQuestion
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetClarificationQuestion {
|
|
19
|
+
/**
|
|
20
|
+
* `q1`, `q2`, ...
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WidgetClarificationQuestion
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WidgetClarificationQuestion
|
|
29
|
+
*/
|
|
30
|
+
question: string;
|
|
31
|
+
/**
|
|
32
|
+
* The localized word placed in parentheses on the recommended option's label (default `Recommended`).
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WidgetClarificationQuestion
|
|
35
|
+
*/
|
|
36
|
+
recommendedWord: string;
|
|
37
|
+
/**
|
|
38
|
+
* Two to five options with the recommended one first; empty for a question answered in words only.
|
|
39
|
+
* @type {Array<WidgetClarificationOption>}
|
|
40
|
+
* @memberof WidgetClarificationQuestion
|
|
41
|
+
*/
|
|
42
|
+
options: Array<WidgetClarificationOption>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the person may answer in their own words (the "Other..." row). Always true when there are no options.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof WidgetClarificationQuestion
|
|
47
|
+
*/
|
|
48
|
+
allowOther: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the person may choose more than one option. The assistant sets it for each question on its own: false (one answer) unless the answer can hold several things at once (which sections, which platforms), so a card may mix both kinds. Always false when there are fewer than two options. Several choices go back in one `answer`, one per line.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof WidgetClarificationQuestion
|
|
53
|
+
*/
|
|
54
|
+
allowMultiple: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfWidgetClarificationQuestion(value: object): value is WidgetClarificationQuestion;
|
|
60
|
+
export declare function WidgetClarificationQuestionFromJSON(json: any): WidgetClarificationQuestion;
|
|
61
|
+
export declare function WidgetClarificationQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarificationQuestion;
|
|
62
|
+
export declare function WidgetClarificationQuestionToJSON(json: any): WidgetClarificationQuestion;
|
|
63
|
+
export declare function WidgetClarificationQuestionToJSONTyped(value?: WidgetClarificationQuestion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfWidgetClarificationQuestion = instanceOfWidgetClarificationQuestion;
|
|
17
|
+
exports.WidgetClarificationQuestionFromJSON = WidgetClarificationQuestionFromJSON;
|
|
18
|
+
exports.WidgetClarificationQuestionFromJSONTyped = WidgetClarificationQuestionFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationQuestionToJSON = WidgetClarificationQuestionToJSON;
|
|
20
|
+
exports.WidgetClarificationQuestionToJSONTyped = WidgetClarificationQuestionToJSONTyped;
|
|
21
|
+
const WidgetClarificationOption_1 = require("./WidgetClarificationOption");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetClarificationQuestion(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('recommendedWord' in value) || value['recommendedWord'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('allowOther' in value) || value['allowOther'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('allowMultiple' in value) || value['allowMultiple'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function WidgetClarificationQuestionFromJSON(json) {
|
|
41
|
+
return WidgetClarificationQuestionFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'question': json['question'],
|
|
50
|
+
'recommendedWord': json['recommendedWord'],
|
|
51
|
+
'options': (json['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionFromJSON)),
|
|
52
|
+
'allowOther': json['allowOther'],
|
|
53
|
+
'allowMultiple': json['allowMultiple'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function WidgetClarificationQuestionToJSON(json) {
|
|
57
|
+
return WidgetClarificationQuestionToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'question': value['question'],
|
|
66
|
+
'recommendedWord': value['recommendedWord'],
|
|
67
|
+
'options': (value['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionToJSON)),
|
|
68
|
+
'allowOther': value['allowOther'],
|
|
69
|
+
'allowMultiple': value['allowMultiple'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* One file a build changed, in `metadata.codeChanges.files`. The change is in `patch` as unified hunks (the format of GitLab's own commit diff, without the file header): each hunk starts with `@@ -oldStart,oldCount +newStart,newCount @@` (a count of one is left out; a file that is new starts at `-0,0`) and its lines start with a space (unchanged, for context), `-` (taken out) or `+` (put in). A client that draws it reads the hunk until the next `@@` line and does not depend on the counts, because a cut patch ends in the middle of a hunk.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetCodeChange
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetCodeChange {
|
|
18
|
+
/**
|
|
19
|
+
* The path in the repository, for example `src/routes/+page.svelte`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetCodeChange
|
|
22
|
+
*/
|
|
23
|
+
path: string;
|
|
24
|
+
/**
|
|
25
|
+
* `added` for a file that did not exist before the build, `modified` for one that did.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetCodeChange
|
|
28
|
+
*/
|
|
29
|
+
status: WidgetCodeChangeStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Lines put in, counted over the whole file even when `patch` was cut.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof WidgetCodeChange
|
|
34
|
+
*/
|
|
35
|
+
additions: number;
|
|
36
|
+
/**
|
|
37
|
+
* Lines taken out, counted over the whole file even when `patch` was cut.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof WidgetCodeChange
|
|
40
|
+
*/
|
|
41
|
+
deletions: number;
|
|
42
|
+
/**
|
|
43
|
+
* The change as unified hunks, with three unchanged lines of context around every change. Empty when it did not fit (then `truncated` is true).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WidgetCodeChange
|
|
46
|
+
*/
|
|
47
|
+
patch: string;
|
|
48
|
+
/**
|
|
49
|
+
* Present and true when `patch` was cut short or left out (a size bound, or a line so long it was cut). The counts stay the true ones.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof WidgetCodeChange
|
|
52
|
+
*/
|
|
53
|
+
truncated?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const WidgetCodeChangeStatusEnum: {
|
|
59
|
+
readonly Added: 'added';
|
|
60
|
+
readonly Modified: 'modified';
|
|
61
|
+
};
|
|
62
|
+
export type WidgetCodeChangeStatusEnum = typeof WidgetCodeChangeStatusEnum[keyof typeof WidgetCodeChangeStatusEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfWidgetCodeChange(value: object): value is WidgetCodeChange;
|
|
67
|
+
export declare function WidgetCodeChangeFromJSON(json: any): WidgetCodeChange;
|
|
68
|
+
export declare function WidgetCodeChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChange;
|
|
69
|
+
export declare function WidgetCodeChangeToJSON(json: any): WidgetCodeChange;
|
|
70
|
+
export declare function WidgetCodeChangeToJSONTyped(value?: WidgetCodeChange | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.WidgetCodeChangeStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWidgetCodeChange = instanceOfWidgetCodeChange;
|
|
18
|
+
exports.WidgetCodeChangeFromJSON = WidgetCodeChangeFromJSON;
|
|
19
|
+
exports.WidgetCodeChangeFromJSONTyped = WidgetCodeChangeFromJSONTyped;
|
|
20
|
+
exports.WidgetCodeChangeToJSON = WidgetCodeChangeToJSON;
|
|
21
|
+
exports.WidgetCodeChangeToJSONTyped = WidgetCodeChangeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WidgetCodeChangeStatusEnum = {
|
|
26
|
+
Added: 'added',
|
|
27
|
+
Modified: 'modified'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfWidgetCodeChange(value) {
|
|
33
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('additions' in value) || value['additions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('deletions' in value) || value['deletions'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('patch' in value) || value['patch'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function WidgetCodeChangeFromJSON(json) {
|
|
46
|
+
return WidgetCodeChangeFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function WidgetCodeChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'path': json['path'],
|
|
54
|
+
'status': json['status'],
|
|
55
|
+
'additions': json['additions'],
|
|
56
|
+
'deletions': json['deletions'],
|
|
57
|
+
'patch': json['patch'],
|
|
58
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function WidgetCodeChangeToJSON(json) {
|
|
62
|
+
return WidgetCodeChangeToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function WidgetCodeChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'path': value['path'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'additions': value['additions'],
|
|
72
|
+
'deletions': value['deletions'],
|
|
73
|
+
'patch': value['patch'],
|
|
74
|
+
'truncated': value['truncated'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { WidgetCodeChange } from './WidgetCodeChange';
|
|
13
|
+
/**
|
|
14
|
+
* What a completed build changed, in `metadata.codeChanges` of its operation, for a client that declared `clientCapabilities.codeChanges`. Present only for a build that was kept (a version was saved and the preview compiled) on a follow-up round of a conversation (the first message replaces what the repository held, so there is nothing to compare), and only when something a person could see changed (a change of line endings alone is none). The size is bounded: a few files, and a few tens of thousands of characters in all.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetCodeChanges
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetCodeChanges {
|
|
19
|
+
/**
|
|
20
|
+
* The files that changed, the code first, then data files such as JSON, then anything else.
|
|
21
|
+
* @type {Array<WidgetCodeChange>}
|
|
22
|
+
* @memberof WidgetCodeChanges
|
|
23
|
+
*/
|
|
24
|
+
files: Array<WidgetCodeChange>;
|
|
25
|
+
/**
|
|
26
|
+
* How many more files changed than `files` lists. 0 when every changed file is listed.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof WidgetCodeChanges
|
|
29
|
+
*/
|
|
30
|
+
omittedFiles: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfWidgetCodeChanges(value: object): value is WidgetCodeChanges;
|
|
36
|
+
export declare function WidgetCodeChangesFromJSON(json: any): WidgetCodeChanges;
|
|
37
|
+
export declare function WidgetCodeChangesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChanges;
|
|
38
|
+
export declare function WidgetCodeChangesToJSON(json: any): WidgetCodeChanges;
|
|
39
|
+
export declare function WidgetCodeChangesToJSONTyped(value?: WidgetCodeChanges | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfWidgetCodeChanges = instanceOfWidgetCodeChanges;
|
|
17
|
+
exports.WidgetCodeChangesFromJSON = WidgetCodeChangesFromJSON;
|
|
18
|
+
exports.WidgetCodeChangesFromJSONTyped = WidgetCodeChangesFromJSONTyped;
|
|
19
|
+
exports.WidgetCodeChangesToJSON = WidgetCodeChangesToJSON;
|
|
20
|
+
exports.WidgetCodeChangesToJSONTyped = WidgetCodeChangesToJSONTyped;
|
|
21
|
+
const WidgetCodeChange_1 = require("./WidgetCodeChange");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetCodeChanges(value) {
|
|
26
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('omittedFiles' in value) || value['omittedFiles'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function WidgetCodeChangesFromJSON(json) {
|
|
33
|
+
return WidgetCodeChangesFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function WidgetCodeChangesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'files': (json['files'].map(WidgetCodeChange_1.WidgetCodeChangeFromJSON)),
|
|
41
|
+
'omittedFiles': json['omittedFiles'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function WidgetCodeChangesToJSON(json) {
|
|
45
|
+
return WidgetCodeChangesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function WidgetCodeChangesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'files': (value['files'].map(WidgetCodeChange_1.WidgetCodeChangeToJSON)),
|
|
53
|
+
'omittedFiles': value['omittedFiles'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* One suggested next improvement, in `metadata.nextSteps` of a completed generation. The label is a complete request: sending it as the next message is the whole action. The title is the same request in at most five words, for a small pill that shows the label in full when the pointer rests on it. The first suggestion is always the recommended one; the chips saved under the reply carry the label and the title but no flag, so a client applies the same rule after a reload.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetNextStep
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetNextStep {
|
|
18
|
+
/**
|
|
19
|
+
* `n1`, `n2`, ...
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetNextStep
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The request, at most 80 characters.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetNextStep
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The same request in at most five words and 40 characters, in the person's language ("Add a confetti burst"). Never empty: when the model gave none, the server cuts one from the label.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WidgetNextStep
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WidgetNextStep
|
|
40
|
+
*/
|
|
41
|
+
kind: WidgetNextStepKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
* True for the first suggestion and false for the others.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof WidgetNextStep
|
|
46
|
+
*/
|
|
47
|
+
recommended: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const WidgetNextStepKindEnum: {
|
|
53
|
+
readonly Content: 'content';
|
|
54
|
+
readonly Style: 'style';
|
|
55
|
+
readonly Layout: 'layout';
|
|
56
|
+
readonly Behavior: 'behavior';
|
|
57
|
+
readonly Animation: 'animation';
|
|
58
|
+
readonly Data: 'data';
|
|
59
|
+
readonly Other: 'other';
|
|
60
|
+
};
|
|
61
|
+
export type WidgetNextStepKindEnum = typeof WidgetNextStepKindEnum[keyof typeof WidgetNextStepKindEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the WidgetNextStep interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfWidgetNextStep(value: object): value is WidgetNextStep;
|
|
66
|
+
export declare function WidgetNextStepFromJSON(json: any): WidgetNextStep;
|
|
67
|
+
export declare function WidgetNextStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetNextStep;
|
|
68
|
+
export declare function WidgetNextStepToJSON(json: any): WidgetNextStep;
|
|
69
|
+
export declare function WidgetNextStepToJSONTyped(value?: WidgetNextStep | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.WidgetNextStepKindEnum = void 0;
|
|
17
|
+
exports.instanceOfWidgetNextStep = instanceOfWidgetNextStep;
|
|
18
|
+
exports.WidgetNextStepFromJSON = WidgetNextStepFromJSON;
|
|
19
|
+
exports.WidgetNextStepFromJSONTyped = WidgetNextStepFromJSONTyped;
|
|
20
|
+
exports.WidgetNextStepToJSON = WidgetNextStepToJSON;
|
|
21
|
+
exports.WidgetNextStepToJSONTyped = WidgetNextStepToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WidgetNextStepKindEnum = {
|
|
26
|
+
Content: 'content',
|
|
27
|
+
Style: 'style',
|
|
28
|
+
Layout: 'layout',
|
|
29
|
+
Behavior: 'behavior',
|
|
30
|
+
Animation: 'animation',
|
|
31
|
+
Data: 'data',
|
|
32
|
+
Other: 'other'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the WidgetNextStep interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfWidgetNextStep(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function WidgetNextStepFromJSON(json) {
|
|
51
|
+
return WidgetNextStepFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'label': json['label'],
|
|
60
|
+
'title': json['title'],
|
|
61
|
+
'kind': json['kind'],
|
|
62
|
+
'recommended': json['recommended'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function WidgetNextStepToJSON(json) {
|
|
66
|
+
return WidgetNextStepToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'label': value['label'],
|
|
75
|
+
'title': value['title'],
|
|
76
|
+
'kind': value['kind'],
|
|
77
|
+
'recommended': value['recommended'],
|
|
78
|
+
};
|
|
79
|
+
}
|