@widgetic/api-sdk-ts 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/CompositionsApi.d.ts +1 -0
- package/dist/apis/CompositionsApi.js +3 -0
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/ManagedUsersApi.d.ts +2 -2
- package/dist/apis/ManagedUsersApi.js +2 -2
- package/dist/apis/OrganizationsApi.d.ts +74 -0
- package/dist/apis/OrganizationsApi.js +205 -0
- package/dist/apis/PartnersApi.d.ts +8 -8
- package/dist/apis/PartnersApi.js +8 -8
- package/dist/apis/TokensApi.d.ts +2 -2
- package/dist/apis/TokensApi.js +2 -2
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/apis/UsersApi.d.ts +3 -59
- package/dist/apis/UsersApi.js +2 -150
- package/dist/apis/WidgetsApi.d.ts +2 -2
- package/dist/apis/WidgetsApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +38 -38
- package/dist/apis/WorkflowsApi.js +38 -38
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CompositionsApi.js +3 -0
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/ManagedUsersApi.js +2 -2
- package/dist/esm/apis/OrganizationsApi.js +168 -0
- package/dist/esm/apis/PartnersApi.js +8 -8
- package/dist/esm/apis/TokensApi.js +2 -2
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/UsersApi.js +3 -151
- package/dist/esm/apis/WidgetsApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.js +38 -38
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
- package/dist/esm/models/EditorSession.js +4 -0
- package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
- package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
- package/dist/esm/models/NewWidget.js +0 -1
- package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
- package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
- 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/WidgetClarificationQuestion.js +4 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +4 -0
- package/dist/esm/models/index.js +11 -6
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- 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/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -0
- package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/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/EditorSession.d.ts +7 -0
- package/dist/models/EditorSession.js +4 -0
- package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
- package/dist/models/GetOperationResponseDataMetadata.js +12 -1
- package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
- package/dist/models/GetOrganizationDomains200Response.js +58 -0
- 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/UpdateOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
- package/dist/models/Upload.d.ts +6 -0
- package/dist/models/Upload.js +2 -0
- 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/WidgetClarificationQuestion.d.ts +6 -0
- package/dist/models/WidgetClarificationQuestion.js +4 -0
- package/dist/models/WidgetCodeChange.d.ts +70 -0
- package/dist/models/WidgetCodeChange.js +76 -0
- package/dist/models/WidgetCodeChanges.d.ts +39 -0
- package/dist/models/WidgetCodeChanges.js +55 -0
- package/dist/models/WidgetNextStep.d.ts +7 -1
- package/dist/models/WidgetNextStep.js +4 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
- 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/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
- 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
|
@@ -11,41 +11,41 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { DeleteOrganizationDomainResponseDataFromJSON, DeleteOrganizationDomainResponseDataToJSON, } from './DeleteOrganizationDomainResponseData.js';
|
|
14
15
|
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
15
|
-
import { PersonalWorkspaceDomainResultFromJSON, PersonalWorkspaceDomainResultToJSON, } from './PersonalWorkspaceDomainResult.js';
|
|
16
16
|
/**
|
|
17
|
-
* Check if a given object implements the
|
|
17
|
+
* Check if a given object implements the DeleteOrganizationDomainResponse interface.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function instanceOfDeleteOrganizationDomainResponse(value) {
|
|
20
20
|
if (!('success' in value) || value['success'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('data' in value) || value['data'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
export function
|
|
27
|
-
return
|
|
26
|
+
export function DeleteOrganizationDomainResponseFromJSON(json) {
|
|
27
|
+
return DeleteOrganizationDomainResponseFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
29
|
+
export function DeleteOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
30
|
if (json == null) {
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'success': json['success'],
|
|
35
|
-
'data':
|
|
35
|
+
'data': DeleteOrganizationDomainResponseDataFromJSON(json['data']),
|
|
36
36
|
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function DeleteOrganizationDomainResponseToJSON(json) {
|
|
40
|
+
return DeleteOrganizationDomainResponseToJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function DeleteOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
43
|
if (value == null) {
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
'success': value['success'],
|
|
48
|
-
'data':
|
|
48
|
+
'data': DeleteOrganizationDomainResponseDataToJSON(value['data']),
|
|
49
49
|
'meta': ResponseMetaToJSON(value['meta']),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the DeleteOrganizationDomainResponseData interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDeleteOrganizationDomainResponseData(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DeleteOrganizationDomainResponseDataFromJSON(json) {
|
|
21
|
+
return DeleteOrganizationDomainResponseDataFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DeleteOrganizationDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function DeleteOrganizationDomainResponseDataToJSON(json) {
|
|
32
|
+
return DeleteOrganizationDomainResponseDataToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function DeleteOrganizationDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'message': value['message'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -32,6 +32,8 @@ export function instanceOfEditorSession(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('managedUserExternalId' in value) || value['managedUserExternalId'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('workspaceId' in value) || value['workspaceId'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('surfaces' in value) || value['surfaces'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
@@ -52,6 +54,7 @@ export function EditorSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'sessionId': json['sessionId'],
|
|
53
55
|
'managedUserId': json['managedUserId'],
|
|
54
56
|
'managedUserExternalId': json['managedUserExternalId'],
|
|
57
|
+
'workspaceId': json['workspaceId'],
|
|
55
58
|
'surfaces': json['surfaces'],
|
|
56
59
|
'allowedOrigin': json['allowedOrigin'] == null ? undefined : json['allowedOrigin'],
|
|
57
60
|
'maxCredits': json['maxCredits'] == null ? undefined : json['maxCredits'],
|
|
@@ -71,6 +74,7 @@ export function EditorSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
74
|
'sessionId': value['sessionId'],
|
|
72
75
|
'managedUserId': value['managedUserId'],
|
|
73
76
|
'managedUserExternalId': value['managedUserExternalId'],
|
|
77
|
+
'workspaceId': value['workspaceId'],
|
|
74
78
|
'surfaces': value['surfaces'],
|
|
75
79
|
'allowedOrigin': value['allowedOrigin'],
|
|
76
80
|
'maxCredits': value['maxCredits'],
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { WidgetNextStepFromJSON, WidgetNextStepToJSON, } from './WidgetNextStep.js';
|
|
15
15
|
import { WidgetClarificationFromJSON, WidgetClarificationToJSON, } from './WidgetClarification.js';
|
|
16
|
+
import { WidgetCodeChangesFromJSON, WidgetCodeChangesToJSON, } from './WidgetCodeChanges.js';
|
|
16
17
|
import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
|
|
17
18
|
/**
|
|
18
19
|
* @export
|
|
@@ -20,6 +21,12 @@ import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
|
|
|
20
21
|
export const GetOperationResponseDataMetadataOutcomeEnum = {
|
|
21
22
|
NeedsAnswers: 'needs_answers'
|
|
22
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const GetOperationResponseDataMetadataStartedByEnum = {
|
|
28
|
+
Agent: 'agent'
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the GetOperationResponseDataMetadata interface.
|
|
25
32
|
*/
|
|
@@ -39,6 +46,8 @@ export function GetOperationResponseDataMetadataFromJSONTyped(json, ignoreDiscri
|
|
|
39
46
|
'outcome': json['outcome'] == null ? undefined : json['outcome'],
|
|
40
47
|
'clarification': json['clarification'] == null ? undefined : WidgetClarificationFromJSON(json['clarification']),
|
|
41
48
|
'nextSteps': json['nextSteps'] == null ? undefined : (json['nextSteps'].map(WidgetNextStepFromJSON)),
|
|
49
|
+
'codeChanges': json['codeChanges'] == null ? undefined : WidgetCodeChangesFromJSON(json['codeChanges']),
|
|
50
|
+
'startedBy': json['startedBy'] == null ? undefined : json['startedBy'],
|
|
42
51
|
};
|
|
43
52
|
}
|
|
44
53
|
export function GetOperationResponseDataMetadataToJSON(json) {
|
|
@@ -54,5 +63,7 @@ export function GetOperationResponseDataMetadataToJSONTyped(value, ignoreDiscrim
|
|
|
54
63
|
'outcome': value['outcome'],
|
|
55
64
|
'clarification': WidgetClarificationToJSON(value['clarification']),
|
|
56
65
|
'nextSteps': value['nextSteps'] == null ? undefined : (value['nextSteps'].map(WidgetNextStepToJSON)),
|
|
66
|
+
'codeChanges': WidgetCodeChangesToJSON(value['codeChanges']),
|
|
67
|
+
'startedBy': value['startedBy'],
|
|
57
68
|
};
|
|
58
69
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
15
|
+
import { OrganizationDomainFromJSON, OrganizationDomainToJSON, } from './OrganizationDomain.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetOrganizationDomains200Response interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetOrganizationDomains200Response(value) {
|
|
20
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetOrganizationDomains200ResponseFromJSON(json) {
|
|
27
|
+
return GetOrganizationDomains200ResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetOrganizationDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'success': json['success'],
|
|
35
|
+
'data': (json['data'].map(OrganizationDomainFromJSON)),
|
|
36
|
+
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetOrganizationDomains200ResponseToJSON(json) {
|
|
40
|
+
return GetOrganizationDomains200ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetOrganizationDomains200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'data': (value['data'].map(OrganizationDomainToJSON)),
|
|
49
|
+
'meta': ResponseMetaToJSON(value['meta']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -12,43 +12,37 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the OrganizationDomain interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
18
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('userId' in value) || value['userId'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('domain' in value) || value['domain'] === undefined)
|
|
23
|
-
return false;
|
|
17
|
+
export function instanceOfOrganizationDomain(value) {
|
|
24
18
|
return true;
|
|
25
19
|
}
|
|
26
|
-
export function
|
|
27
|
-
return
|
|
20
|
+
export function OrganizationDomainFromJSON(json) {
|
|
21
|
+
return OrganizationDomainFromJSONTyped(json, false);
|
|
28
22
|
}
|
|
29
|
-
export function
|
|
23
|
+
export function OrganizationDomainFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
24
|
if (json == null) {
|
|
31
25
|
return json;
|
|
32
26
|
}
|
|
33
27
|
return {
|
|
34
|
-
'id': json['id'],
|
|
35
|
-
'
|
|
36
|
-
'
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'domain': json['domain'] == null ? undefined : json['domain'],
|
|
30
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
37
31
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
32
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
39
33
|
};
|
|
40
34
|
}
|
|
41
|
-
export function
|
|
42
|
-
return
|
|
35
|
+
export function OrganizationDomainToJSON(json) {
|
|
36
|
+
return OrganizationDomainToJSONTyped(json, false);
|
|
43
37
|
}
|
|
44
|
-
export function
|
|
38
|
+
export function OrganizationDomainToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
39
|
if (value == null) {
|
|
46
40
|
return value;
|
|
47
41
|
}
|
|
48
42
|
return {
|
|
49
43
|
'id': value['id'],
|
|
50
|
-
'userId': value['userId'],
|
|
51
44
|
'domain': value['domain'],
|
|
45
|
+
'organizationId': value['organizationId'],
|
|
52
46
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
53
47
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
54
48
|
};
|
|
@@ -12,40 +12,40 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
15
|
-
import {
|
|
15
|
+
import { AddOrganizationDomainResponseDataFromJSON, AddOrganizationDomainResponseDataToJSON, } from './AddOrganizationDomainResponseData.js';
|
|
16
16
|
/**
|
|
17
|
-
* Check if a given object implements the
|
|
17
|
+
* Check if a given object implements the UpdateOrganizationDomainResponse interface.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function instanceOfUpdateOrganizationDomainResponse(value) {
|
|
20
20
|
if (!('success' in value) || value['success'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('data' in value) || value['data'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
export function
|
|
27
|
-
return
|
|
26
|
+
export function UpdateOrganizationDomainResponseFromJSON(json) {
|
|
27
|
+
return UpdateOrganizationDomainResponseFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
29
|
+
export function UpdateOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
30
|
if (json == null) {
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'success': json['success'],
|
|
35
|
-
'data':
|
|
35
|
+
'data': AddOrganizationDomainResponseDataFromJSON(json['data']),
|
|
36
36
|
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function UpdateOrganizationDomainResponseToJSON(json) {
|
|
40
|
+
return UpdateOrganizationDomainResponseToJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function UpdateOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
43
|
if (value == null) {
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
'success': value['success'],
|
|
48
|
-
'data':
|
|
48
|
+
'data': AddOrganizationDomainResponseDataToJSON(value['data']),
|
|
49
49
|
'meta': ResponseMetaToJSON(value['meta']),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -82,6 +82,7 @@ export function UploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'conversation_id': json['conversation_id'] == null ? undefined : json['conversation_id'],
|
|
83
83
|
'managed_user_id': json['managed_user_id'] == null ? undefined : json['managed_user_id'],
|
|
84
84
|
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
85
|
+
'library_folder_path': json['library_folder_path'] == null ? undefined : json['library_folder_path'],
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
88
|
export function UploadToJSON(json) {
|
|
@@ -106,5 +107,6 @@ export function UploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
106
107
|
'conversation_id': value['conversation_id'],
|
|
107
108
|
'managed_user_id': value['managed_user_id'],
|
|
108
109
|
'purpose': value['purpose'],
|
|
110
|
+
'library_folder_path': value['library_folder_path'],
|
|
109
111
|
};
|
|
110
112
|
}
|
|
@@ -56,6 +56,7 @@ export function UserApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
57
57
|
'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
|
|
58
58
|
'isActive': json['isActive'],
|
|
59
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
59
60
|
'scopes': (json['scopes'].map(ApiKeyScopeFromJSON)),
|
|
60
61
|
'preset': json['preset'],
|
|
61
62
|
};
|
|
@@ -75,6 +76,7 @@ export function UserApiKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
76
|
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
76
77
|
'lastUsedAt': value['lastUsedAt'] == null ? undefined : (value['lastUsedAt'].toISOString()),
|
|
77
78
|
'isActive': value['isActive'],
|
|
79
|
+
'organizationId': value['organizationId'],
|
|
78
80
|
'scopes': (value['scopes'].map(ApiKeyScopeToJSON)),
|
|
79
81
|
'preset': value['preset'],
|
|
80
82
|
};
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ValidateToken200ResponseDataWorkspaceFromJSON, ValidateToken200ResponseDataWorkspaceToJSON, } from './ValidateToken200ResponseDataWorkspace.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -38,6 +39,7 @@ export function ValidateToken200ResponseDataFromJSONTyped(json, ignoreDiscrimina
|
|
|
38
39
|
'scopes': json['scopes'] == null ? undefined : json['scopes'],
|
|
39
40
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
40
41
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
42
|
+
'workspace': json['workspace'] == null ? undefined : ValidateToken200ResponseDataWorkspaceFromJSON(json['workspace']),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export function ValidateToken200ResponseDataToJSON(json) {
|
|
@@ -53,5 +55,6 @@ export function ValidateToken200ResponseDataToJSONTyped(value, ignoreDiscriminat
|
|
|
53
55
|
'scopes': value['scopes'],
|
|
54
56
|
'userId': value['userId'],
|
|
55
57
|
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
58
|
+
'workspace': ValidateToken200ResponseDataWorkspaceToJSON(value['workspace']),
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ValidateToken200ResponseDataWorkspace interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfValidateToken200ResponseDataWorkspace(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ValidateToken200ResponseDataWorkspaceFromJSON(json) {
|
|
21
|
+
return ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ValidateToken200ResponseDataWorkspaceToJSON(json) {
|
|
33
|
+
return ValidateToken200ResponseDataWorkspaceToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ValidateToken200ResponseDataWorkspaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value['id'],
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -44,11 +44,14 @@ export function WidgetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
45
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
46
46
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
47
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
47
48
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
48
49
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
49
50
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
50
51
|
'version': json['version'] == null ? undefined : json['version'],
|
|
51
52
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
53
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
54
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
52
55
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
53
56
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
54
57
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -75,11 +78,14 @@ export function WidgetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
78
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
76
79
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
77
80
|
'jsPath': value['jsPath'],
|
|
81
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
78
82
|
'canvasId': value['canvasId'],
|
|
79
83
|
'repoId': value['repoId'],
|
|
80
84
|
'databaseId': value['databaseId'],
|
|
81
85
|
'version': value['version'],
|
|
82
86
|
'lastCommitSha': value['lastCommitSha'],
|
|
87
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
88
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
83
89
|
'organizationId': value['organizationId'],
|
|
84
90
|
'projectFolder': value['projectFolder'],
|
|
85
91
|
'workspaceType': value['workspaceType'],
|
|
@@ -26,6 +26,8 @@ export function instanceOfWidgetClarificationQuestion(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('allowOther' in value) || value['allowOther'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('allowMultiple' in value) || value['allowMultiple'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
export function WidgetClarificationQuestionFromJSON(json) {
|
|
@@ -41,6 +43,7 @@ export function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminat
|
|
|
41
43
|
'recommendedWord': json['recommendedWord'],
|
|
42
44
|
'options': (json['options'].map(WidgetClarificationOptionFromJSON)),
|
|
43
45
|
'allowOther': json['allowOther'],
|
|
46
|
+
'allowMultiple': json['allowMultiple'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
export function WidgetClarificationQuestionToJSON(json) {
|
|
@@ -56,5 +59,6 @@ export function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminato
|
|
|
56
59
|
'recommendedWord': value['recommendedWord'],
|
|
57
60
|
'options': (value['options'].map(WidgetClarificationOptionToJSON)),
|
|
58
61
|
'allowOther': value['allowOther'],
|
|
62
|
+
'allowMultiple': value['allowMultiple'],
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const WidgetCodeChangeStatusEnum = {
|
|
18
|
+
Added: 'added',
|
|
19
|
+
Modified: 'modified'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfWidgetCodeChange(value) {
|
|
25
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('additions' in value) || value['additions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('deletions' in value) || value['deletions'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('patch' in value) || value['patch'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function WidgetCodeChangeFromJSON(json) {
|
|
38
|
+
return WidgetCodeChangeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function WidgetCodeChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'path': json['path'],
|
|
46
|
+
'status': json['status'],
|
|
47
|
+
'additions': json['additions'],
|
|
48
|
+
'deletions': json['deletions'],
|
|
49
|
+
'patch': json['patch'],
|
|
50
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function WidgetCodeChangeToJSON(json) {
|
|
54
|
+
return WidgetCodeChangeToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function WidgetCodeChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'path': value['path'],
|
|
62
|
+
'status': value['status'],
|
|
63
|
+
'additions': value['additions'],
|
|
64
|
+
'deletions': value['deletions'],
|
|
65
|
+
'patch': value['patch'],
|
|
66
|
+
'truncated': value['truncated'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetCodeChangeFromJSON, WidgetCodeChangeToJSON, } from './WidgetCodeChange.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWidgetCodeChanges(value) {
|
|
19
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('omittedFiles' in value) || value['omittedFiles'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function WidgetCodeChangesFromJSON(json) {
|
|
26
|
+
return WidgetCodeChangesFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function WidgetCodeChangesFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'files': (json['files'].map(WidgetCodeChangeFromJSON)),
|
|
34
|
+
'omittedFiles': json['omittedFiles'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function WidgetCodeChangesToJSON(json) {
|
|
38
|
+
return WidgetCodeChangesToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function WidgetCodeChangesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'files': (value['files'].map(WidgetCodeChangeToJSON)),
|
|
46
|
+
'omittedFiles': value['omittedFiles'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -31,6 +31,8 @@ export function instanceOfWidgetNextStep(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('label' in value) || value['label'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('kind' in value) || value['kind'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
@@ -47,6 +49,7 @@ export function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
return {
|
|
48
50
|
'id': json['id'],
|
|
49
51
|
'label': json['label'],
|
|
52
|
+
'title': json['title'],
|
|
50
53
|
'kind': json['kind'],
|
|
51
54
|
'recommended': json['recommended'],
|
|
52
55
|
};
|
|
@@ -61,6 +64,7 @@ export function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
64
|
return {
|
|
62
65
|
'id': value['id'],
|
|
63
66
|
'label': value['label'],
|
|
67
|
+
'title': value['title'],
|
|
64
68
|
'kind': value['kind'],
|
|
65
69
|
'recommended': value['recommended'],
|
|
66
70
|
};
|