@widgetic/api-sdk-ts 2.0.3 → 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/CreditsApi.d.ts +2 -2
- package/dist/apis/CreditsApi.js +2 -2
- 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 +2 -2
- package/dist/apis/UploadsApi.js +2 -2
- 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/CreditsApi.js +2 -2
- 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 +2 -2
- 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/{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/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/UserApiKey.js +2 -0
- package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
- package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
- package/dist/esm/models/index.js +8 -6
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +1 -1
- 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/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/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/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/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- package/dist/models/index.d.ts +8 -6
- package/dist/models/index.js +8 -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
|
@@ -0,0 +1,32 @@
|
|
|
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 DeleteOrganizationDomainResponseData
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteOrganizationDomainResponseData {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteOrganizationDomainResponseData
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DeleteOrganizationDomainResponseData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDeleteOrganizationDomainResponseData(value: object): value is DeleteOrganizationDomainResponseData;
|
|
29
|
+
export declare function DeleteOrganizationDomainResponseDataFromJSON(json: any): DeleteOrganizationDomainResponseData;
|
|
30
|
+
export declare function DeleteOrganizationDomainResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteOrganizationDomainResponseData;
|
|
31
|
+
export declare function DeleteOrganizationDomainResponseDataToJSON(json: any): DeleteOrganizationDomainResponseData;
|
|
32
|
+
export declare function DeleteOrganizationDomainResponseDataToJSONTyped(value?: DeleteOrganizationDomainResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfDeleteOrganizationDomainResponseData = instanceOfDeleteOrganizationDomainResponseData;
|
|
17
|
+
exports.DeleteOrganizationDomainResponseDataFromJSON = DeleteOrganizationDomainResponseDataFromJSON;
|
|
18
|
+
exports.DeleteOrganizationDomainResponseDataFromJSONTyped = DeleteOrganizationDomainResponseDataFromJSONTyped;
|
|
19
|
+
exports.DeleteOrganizationDomainResponseDataToJSON = DeleteOrganizationDomainResponseDataToJSON;
|
|
20
|
+
exports.DeleteOrganizationDomainResponseDataToJSONTyped = DeleteOrganizationDomainResponseDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeleteOrganizationDomainResponseData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeleteOrganizationDomainResponseData(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DeleteOrganizationDomainResponseDataFromJSON(json) {
|
|
28
|
+
return DeleteOrganizationDomainResponseDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DeleteOrganizationDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function DeleteOrganizationDomainResponseDataToJSON(json) {
|
|
39
|
+
return DeleteOrganizationDomainResponseDataToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function DeleteOrganizationDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'message': value['message'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -41,6 +41,13 @@ export interface EditorSession {
|
|
|
41
41
|
* @memberof EditorSession
|
|
42
42
|
*/
|
|
43
43
|
managedUserExternalId: string;
|
|
44
|
+
/**
|
|
45
|
+
* The workspace this user's content is filed in: your partner workspace, the one made with your partner account (your customers have no workspace of their own). The `workflows` surface names it in every path (`/workspaces/{workspaceId}/workflows`), and the Workflows editor takes it as its `workspaceId`. Any other workspace, your teams included, is refused. Null only when your account has no partner workspace.
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof EditorSession
|
|
49
|
+
*/
|
|
50
|
+
workspaceId: string | null;
|
|
44
51
|
/**
|
|
45
52
|
*
|
|
46
53
|
* @type {Array<string>}
|
|
@@ -40,6 +40,8 @@ function instanceOfEditorSession(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('managedUserExternalId' in value) || value['managedUserExternalId'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('workspaceId' in value) || value['workspaceId'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('surfaces' in value) || value['surfaces'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
@@ -60,6 +62,7 @@ function EditorSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
62
|
'sessionId': json['sessionId'],
|
|
61
63
|
'managedUserId': json['managedUserId'],
|
|
62
64
|
'managedUserExternalId': json['managedUserExternalId'],
|
|
65
|
+
'workspaceId': json['workspaceId'],
|
|
63
66
|
'surfaces': json['surfaces'],
|
|
64
67
|
'allowedOrigin': json['allowedOrigin'] == null ? undefined : json['allowedOrigin'],
|
|
65
68
|
'maxCredits': json['maxCredits'] == null ? undefined : json['maxCredits'],
|
|
@@ -79,6 +82,7 @@ function EditorSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
82
|
'sessionId': value['sessionId'],
|
|
80
83
|
'managedUserId': value['managedUserId'],
|
|
81
84
|
'managedUserExternalId': value['managedUserExternalId'],
|
|
85
|
+
'workspaceId': value['workspaceId'],
|
|
82
86
|
'surfaces': value['surfaces'],
|
|
83
87
|
'allowedOrigin': value['allowedOrigin'],
|
|
84
88
|
'maxCredits': value['maxCredits'],
|
|
@@ -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 { OrganizationDomain } from './OrganizationDomain';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetOrganizationDomains200Response
|
|
18
|
+
*/
|
|
19
|
+
export interface GetOrganizationDomains200Response {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof GetOrganizationDomains200Response
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<OrganizationDomain>}
|
|
29
|
+
* @memberof GetOrganizationDomains200Response
|
|
30
|
+
*/
|
|
31
|
+
data: Array<OrganizationDomain>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof GetOrganizationDomains200Response
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetOrganizationDomains200Response interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfGetOrganizationDomains200Response(value: object): value is GetOrganizationDomains200Response;
|
|
43
|
+
export declare function GetOrganizationDomains200ResponseFromJSON(json: any): GetOrganizationDomains200Response;
|
|
44
|
+
export declare function GetOrganizationDomains200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrganizationDomains200Response;
|
|
45
|
+
export declare function GetOrganizationDomains200ResponseToJSON(json: any): GetOrganizationDomains200Response;
|
|
46
|
+
export declare function GetOrganizationDomains200ResponseToJSONTyped(value?: GetOrganizationDomains200Response | 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.instanceOfGetOrganizationDomains200Response = instanceOfGetOrganizationDomains200Response;
|
|
17
|
+
exports.GetOrganizationDomains200ResponseFromJSON = GetOrganizationDomains200ResponseFromJSON;
|
|
18
|
+
exports.GetOrganizationDomains200ResponseFromJSONTyped = GetOrganizationDomains200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetOrganizationDomains200ResponseToJSON = GetOrganizationDomains200ResponseToJSON;
|
|
20
|
+
exports.GetOrganizationDomains200ResponseToJSONTyped = GetOrganizationDomains200ResponseToJSONTyped;
|
|
21
|
+
const ResponseMeta_1 = require("./ResponseMeta");
|
|
22
|
+
const OrganizationDomain_1 = require("./OrganizationDomain");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetOrganizationDomains200Response interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetOrganizationDomains200Response(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 GetOrganizationDomains200ResponseFromJSON(json) {
|
|
34
|
+
return GetOrganizationDomains200ResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetOrganizationDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'data': (json['data'].map(OrganizationDomain_1.OrganizationDomainFromJSON)),
|
|
43
|
+
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetOrganizationDomains200ResponseToJSON(json) {
|
|
47
|
+
return GetOrganizationDomains200ResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetOrganizationDomains200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'success': value['success'],
|
|
55
|
+
'data': (value['data'].map(OrganizationDomain_1.OrganizationDomainToJSON)),
|
|
56
|
+
'meta': (0, ResponseMeta_1.ResponseMetaToJSON)(value['meta']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface NewEditorSession {
|
|
18
18
|
/**
|
|
19
|
-
* The pieces of Widgetic's editor the session may drive. `files` is the media library (the File Browser: upload a file, list the files uploaded for this user); what a user uploads is kept in your own storage destination. Partner storage is not optional: a session of any surface can be made only once you have set a destination up (`setPartnerStorageDestination`), and is refused with `409 PARTNER_STORAGE_REQUIRED` until then. `editor` is editing one of this user's compositions: read it, change its name, content, design and embed settings, read its schemas, and ask where to show it (`getCompositionPreview`: the widget's published page). `creator` is Widgetic's widget creator, with its drawing canvas and its AI: this user's canvases, the widgets on them and the conversation of each widget, the generation, build and publish calls that make a widget, and the compositions of those widgets (list, make). The surfaces do not imply one another: the whole creator also saves a composition (`editor`) and attaches pictures to its chat (`files`), so ask for `["creator", "editor", "files"]`. `workflows` is the Workflows editor: this user's own workflows (list, make, make from one of your starting points, draw, publish, pause, resume, archive, delete, the version history and the counts) under `/workspaces/
|
|
19
|
+
* The pieces of Widgetic's editor the session may drive. `files` is the media library (the File Browser: upload a file, list the files uploaded for this user); what a user uploads is kept in your own storage destination. Partner storage is not optional: a session of any surface can be made only once you have set a destination up (`setPartnerStorageDestination`), and is refused with `409 PARTNER_STORAGE_REQUIRED` until then. `editor` is editing one of this user's compositions: read it, change its name, content, design and embed settings, read its schemas, and ask where to show it (`getCompositionPreview`: the widget's published page). `creator` is Widgetic's widget creator, with its drawing canvas and its AI: this user's canvases, the widgets on them and the conversation of each widget, the generation, build and publish calls that make a widget, and the compositions of those widgets (list, make). The surfaces do not imply one another: the whole creator also saves a composition (`editor`) and attaches pictures to its chat (`files`), so ask for `["creator", "editor", "files"]`. `workflows` is the Workflows editor: this user's own workflows (list, make, make from one of your starting points, draw, publish, pause, resume, archive, delete, the version history and the counts) under `/workspaces/{workspaceId}/workflows`, where `workspaceId` is the one the session answers with (your partner workspace, and no other), and the compositions made for this user, which are the only ones a workflow of theirs can chain. A workflow is filed under the user it was made for (`managedUserId`), and the session reaches nothing of another user's, nor of yours.
|
|
20
20
|
*
|
|
21
21
|
* @type {Array<string>}
|
|
22
22
|
* @memberof NewEditorSession
|
|
@@ -64,13 +64,13 @@ export interface NewWidget {
|
|
|
64
64
|
*/
|
|
65
65
|
projectId?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* The workspace the widget belongs to. You must be a member who may create widgets there. Leave it out and the widget goes where its project is, or, when it names no project, in the workspace your key, your connection or your workspace switcher is working in. Naming a project of one workspace and the id of another is refused (400).
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof NewWidget
|
|
70
70
|
*/
|
|
71
71
|
organizationId?: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Always `organization`: every widget lives in a workspace, and there is no personal workspace any more. May be left out.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof NewWidget
|
|
76
76
|
*/
|
|
@@ -92,7 +92,6 @@ export interface NewWidget {
|
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
94
|
export declare const NewWidgetWorkspaceTypeEnum: {
|
|
95
|
-
readonly Personal: 'personal';
|
|
96
95
|
readonly Organization: 'organization';
|
|
97
96
|
};
|
|
98
97
|
export type NewWidgetWorkspaceTypeEnum = typeof NewWidgetWorkspaceTypeEnum[keyof typeof NewWidgetWorkspaceTypeEnum];
|
package/dist/models/NewWidget.js
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
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 OrganizationDomain
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationDomain {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the organization domain
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationDomain
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Domain pattern (supports wildcards)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrganizationDomain
|
|
28
|
+
*/
|
|
29
|
+
domain?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID of the organization that owns this domain
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrganizationDomain
|
|
34
|
+
*/
|
|
35
|
+
organizationId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* When the domain was added
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof OrganizationDomain
|
|
40
|
+
*/
|
|
41
|
+
createdAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* When the domain was last updated
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof OrganizationDomain
|
|
46
|
+
*/
|
|
47
|
+
updatedAt?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the OrganizationDomain interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfOrganizationDomain(value: object): value is OrganizationDomain;
|
|
53
|
+
export declare function OrganizationDomainFromJSON(json: any): OrganizationDomain;
|
|
54
|
+
export declare function OrganizationDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationDomain;
|
|
55
|
+
export declare function OrganizationDomainToJSON(json: any): OrganizationDomain;
|
|
56
|
+
export declare function OrganizationDomainToJSONTyped(value?: OrganizationDomain | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfOrganizationDomain = instanceOfOrganizationDomain;
|
|
17
|
+
exports.OrganizationDomainFromJSON = OrganizationDomainFromJSON;
|
|
18
|
+
exports.OrganizationDomainFromJSONTyped = OrganizationDomainFromJSONTyped;
|
|
19
|
+
exports.OrganizationDomainToJSON = OrganizationDomainToJSON;
|
|
20
|
+
exports.OrganizationDomainToJSONTyped = OrganizationDomainToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrganizationDomain interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrganizationDomain(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function OrganizationDomainFromJSON(json) {
|
|
28
|
+
return OrganizationDomainFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function OrganizationDomainFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'domain': json['domain'] == null ? undefined : json['domain'],
|
|
37
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
38
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
39
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function OrganizationDomainToJSON(json) {
|
|
43
|
+
return OrganizationDomainToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function OrganizationDomainToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'domain': value['domain'],
|
|
52
|
+
'organizationId': value['organizationId'],
|
|
53
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
54
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountCreditTransaction } from './AccountCreditTransaction';
|
|
13
13
|
/**
|
|
14
|
-
* The partner's credits: what the account that pays for the partner (its administrator's)
|
|
14
|
+
* The partner's credits: what the partner's workspace holds in the account that pays for the partner (its administrator's), and the newest entries of that workspace's ledger. A partner with no administrator reads 0 and an empty list.
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
17
|
* @interface PartnerBillingOverviewOperationalCredits
|
|
@@ -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
|
+
}
|
|
@@ -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;
|