@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.
Files changed (124) hide show
  1. package/dist/apis/CompositionsApi.d.ts +1 -0
  2. package/dist/apis/CompositionsApi.js +3 -0
  3. package/dist/apis/CreditsApi.d.ts +4 -4
  4. package/dist/apis/CreditsApi.js +4 -4
  5. package/dist/apis/ManagedUsersApi.d.ts +2 -2
  6. package/dist/apis/ManagedUsersApi.js +2 -2
  7. package/dist/apis/OrganizationsApi.d.ts +74 -0
  8. package/dist/apis/OrganizationsApi.js +205 -0
  9. package/dist/apis/PartnersApi.d.ts +8 -8
  10. package/dist/apis/PartnersApi.js +8 -8
  11. package/dist/apis/TokensApi.d.ts +2 -2
  12. package/dist/apis/TokensApi.js +2 -2
  13. package/dist/apis/UploadsApi.d.ts +4 -4
  14. package/dist/apis/UploadsApi.js +4 -4
  15. package/dist/apis/UsersApi.d.ts +3 -59
  16. package/dist/apis/UsersApi.js +2 -150
  17. package/dist/apis/WidgetsApi.d.ts +2 -2
  18. package/dist/apis/WidgetsApi.js +2 -2
  19. package/dist/apis/WorkflowsApi.d.ts +38 -38
  20. package/dist/apis/WorkflowsApi.js +38 -38
  21. package/dist/apis/index.d.ts +1 -0
  22. package/dist/apis/index.js +1 -0
  23. package/dist/esm/apis/CompositionsApi.js +3 -0
  24. package/dist/esm/apis/CreditsApi.js +4 -4
  25. package/dist/esm/apis/ManagedUsersApi.js +2 -2
  26. package/dist/esm/apis/OrganizationsApi.js +168 -0
  27. package/dist/esm/apis/PartnersApi.js +8 -8
  28. package/dist/esm/apis/TokensApi.js +2 -2
  29. package/dist/esm/apis/UploadsApi.js +4 -4
  30. package/dist/esm/apis/UsersApi.js +3 -151
  31. package/dist/esm/apis/WidgetsApi.js +2 -2
  32. package/dist/esm/apis/WorkflowsApi.js +38 -38
  33. package/dist/esm/apis/index.js +1 -0
  34. package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
  35. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  36. package/dist/esm/models/Canvas.js +3 -0
  37. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  38. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  39. package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
  40. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  41. package/dist/esm/models/EditorSession.js +4 -0
  42. package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
  43. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  44. package/dist/esm/models/NewWidget.js +0 -1
  45. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  46. package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
  47. package/dist/esm/models/Upload.js +2 -0
  48. package/dist/esm/models/UserApiKey.js +2 -0
  49. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  50. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  51. package/dist/esm/models/Widget.js +6 -0
  52. package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
  53. package/dist/esm/models/WidgetCodeChange.js +68 -0
  54. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  55. package/dist/esm/models/WidgetNextStep.js +4 -0
  56. package/dist/esm/models/index.js +11 -6
  57. package/dist/esm/runtime.js +1 -1
  58. package/dist/models/AccountCreditBalance.d.ts +2 -2
  59. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  60. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  61. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  62. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  63. package/dist/models/Canvas.d.ts +7 -0
  64. package/dist/models/Canvas.js +3 -0
  65. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  66. package/dist/models/CanvasActiveOperation.js +74 -0
  67. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  68. package/dist/models/CreateWidget201ResponseData.js +6 -0
  69. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  70. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  71. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  72. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  73. package/dist/models/EditorSession.d.ts +7 -0
  74. package/dist/models/EditorSession.js +4 -0
  75. package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
  76. package/dist/models/GetOperationResponseDataMetadata.js +12 -1
  77. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  78. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  79. package/dist/models/NewEditorSession.d.ts +1 -1
  80. package/dist/models/NewWidget.d.ts +2 -3
  81. package/dist/models/NewWidget.js +0 -1
  82. package/dist/models/OrganizationDomain.d.ts +56 -0
  83. package/dist/models/OrganizationDomain.js +56 -0
  84. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  85. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  86. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  87. package/dist/models/Upload.d.ts +6 -0
  88. package/dist/models/Upload.js +2 -0
  89. package/dist/models/UserApiKey.d.ts +6 -0
  90. package/dist/models/UserApiKey.js +2 -0
  91. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  92. package/dist/models/ValidateToken200ResponseData.js +3 -0
  93. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  94. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  95. package/dist/models/Widget.d.ts +18 -0
  96. package/dist/models/Widget.js +6 -0
  97. package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
  98. package/dist/models/WidgetClarificationQuestion.js +4 -0
  99. package/dist/models/WidgetCodeChange.d.ts +70 -0
  100. package/dist/models/WidgetCodeChange.js +76 -0
  101. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  102. package/dist/models/WidgetCodeChanges.js +55 -0
  103. package/dist/models/WidgetNextStep.d.ts +7 -1
  104. package/dist/models/WidgetNextStep.js +4 -0
  105. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  106. package/dist/models/index.d.ts +11 -6
  107. package/dist/models/index.js +11 -6
  108. package/dist/runtime.d.ts +2 -2
  109. package/dist/runtime.js +1 -1
  110. package/package.json +1 -1
  111. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  112. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  113. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  114. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  115. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  116. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  117. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  118. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  119. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  120. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  121. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  122. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  123. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  124. 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'],
@@ -11,9 +11,10 @@
11
11
  */
12
12
  import type { WidgetNextStep } from './WidgetNextStep';
13
13
  import type { WidgetClarification } from './WidgetClarification';
14
+ import type { WidgetCodeChanges } from './WidgetCodeChanges';
14
15
  import type { WidgetPlan } from './WidgetPlan';
15
16
  /**
16
- * What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none). A code generation whose request declared `clientCapabilities` also tells what that client asked to show: `plan` while it builds, `outcome` `needs_answers` with the card in `clarification` when it asked before building, and `nextSteps` once it is done. A key whose part the client did not declare is never present. During code generation, `stage` is a short status line. While the model streams code, `streamTail` holds the last portion of generated source (replaced periodically, cleared when streaming ends). While the model streams reasoning before code, `thinkingTail` holds the last portion of reasoning text (same cadence; cleared when code streaming starts or the run ends). Clients may read `thinkingTail` or `thinking_tail`.
17
+ * What the operation tells about its work. A finished composition duplication names the new composition in `newCompositionId`, and lists any problem with its database in `warnings` (absent when there is none). A code generation whose request declared `clientCapabilities` also tells what that client asked to show: `plan` while it builds, `outcome` `needs_answers` with the card in `clarification` when it asked before building, `nextSteps` once it is done, and `codeChanges` (what the build changed in the files) with it. A key whose part the client did not declare is never present. During code generation, `stage` is a short status line. While the model streams code, `streamTail` holds the last portion of generated source (replaced periodically, cleared when streaming ends). While the model streams reasoning before code, `thinkingTail` holds the last portion of reasoning text (same cadence; cleared when code streaming starts or the run ends). Clients may read `thinkingTail` or `thinking_tail`.
17
18
  *
18
19
  * @export
19
20
  * @interface GetOperationResponseDataMetadata
@@ -47,6 +48,20 @@ export interface GetOperationResponseDataMetadata {
47
48
  * @memberof GetOperationResponseDataMetadata
48
49
  */
49
50
  nextSteps?: Array<WidgetNextStep>;
51
+ /**
52
+ * What a completed code generation changed in the widget's files, per file as unified hunks, for a client that declared `clientCapabilities.codeChanges`. Absent when the build was not kept, when it was the first message of a conversation (it replaces what the repository held, so there is nothing to compare), or when nothing a person could see changed.
53
+ *
54
+ * @type {WidgetCodeChanges}
55
+ * @memberof GetOperationResponseDataMetadata
56
+ */
57
+ codeChanges?: WidgetCodeChanges;
58
+ /**
59
+ * `agent` on a code generation that an agent began (the Widgetic assistant, or an MCP client through `create_widget`, `replicate_widget` or `revise_widget`): nobody pressed a button for it, so an editor that shows the widget can say who is building and offer to take over. Absent on a generation the person began in the editor.
60
+ *
61
+ * @type {string}
62
+ * @memberof GetOperationResponseDataMetadata
63
+ */
64
+ startedBy?: GetOperationResponseDataMetadataStartedByEnum;
50
65
  }
51
66
  /**
52
67
  * @export
@@ -55,6 +70,13 @@ export declare const GetOperationResponseDataMetadataOutcomeEnum: {
55
70
  readonly NeedsAnswers: 'needs_answers';
56
71
  };
57
72
  export type GetOperationResponseDataMetadataOutcomeEnum = typeof GetOperationResponseDataMetadataOutcomeEnum[keyof typeof GetOperationResponseDataMetadataOutcomeEnum];
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const GetOperationResponseDataMetadataStartedByEnum: {
77
+ readonly Agent: 'agent';
78
+ };
79
+ export type GetOperationResponseDataMetadataStartedByEnum = typeof GetOperationResponseDataMetadataStartedByEnum[keyof typeof GetOperationResponseDataMetadataStartedByEnum];
58
80
  /**
59
81
  * Check if a given object implements the GetOperationResponseDataMetadata interface.
60
82
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetOperationResponseDataMetadataOutcomeEnum = void 0;
16
+ exports.GetOperationResponseDataMetadataStartedByEnum = exports.GetOperationResponseDataMetadataOutcomeEnum = void 0;
17
17
  exports.instanceOfGetOperationResponseDataMetadata = instanceOfGetOperationResponseDataMetadata;
18
18
  exports.GetOperationResponseDataMetadataFromJSON = GetOperationResponseDataMetadataFromJSON;
19
19
  exports.GetOperationResponseDataMetadataFromJSONTyped = GetOperationResponseDataMetadataFromJSONTyped;
@@ -21,6 +21,7 @@ exports.GetOperationResponseDataMetadataToJSON = GetOperationResponseDataMetadat
21
21
  exports.GetOperationResponseDataMetadataToJSONTyped = GetOperationResponseDataMetadataToJSONTyped;
22
22
  const WidgetNextStep_1 = require("./WidgetNextStep");
23
23
  const WidgetClarification_1 = require("./WidgetClarification");
24
+ const WidgetCodeChanges_1 = require("./WidgetCodeChanges");
24
25
  const WidgetPlan_1 = require("./WidgetPlan");
25
26
  /**
26
27
  * @export
@@ -28,6 +29,12 @@ const WidgetPlan_1 = require("./WidgetPlan");
28
29
  exports.GetOperationResponseDataMetadataOutcomeEnum = {
29
30
  NeedsAnswers: 'needs_answers'
30
31
  };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.GetOperationResponseDataMetadataStartedByEnum = {
36
+ Agent: 'agent'
37
+ };
31
38
  /**
32
39
  * Check if a given object implements the GetOperationResponseDataMetadata interface.
33
40
  */
@@ -47,6 +54,8 @@ function GetOperationResponseDataMetadataFromJSONTyped(json, ignoreDiscriminator
47
54
  'outcome': json['outcome'] == null ? undefined : json['outcome'],
48
55
  'clarification': json['clarification'] == null ? undefined : (0, WidgetClarification_1.WidgetClarificationFromJSON)(json['clarification']),
49
56
  'nextSteps': json['nextSteps'] == null ? undefined : (json['nextSteps'].map(WidgetNextStep_1.WidgetNextStepFromJSON)),
57
+ 'codeChanges': json['codeChanges'] == null ? undefined : (0, WidgetCodeChanges_1.WidgetCodeChangesFromJSON)(json['codeChanges']),
58
+ 'startedBy': json['startedBy'] == null ? undefined : json['startedBy'],
50
59
  };
51
60
  }
52
61
  function GetOperationResponseDataMetadataToJSON(json) {
@@ -62,5 +71,7 @@ function GetOperationResponseDataMetadataToJSONTyped(value, ignoreDiscriminator
62
71
  'outcome': value['outcome'],
63
72
  'clarification': (0, WidgetClarification_1.WidgetClarificationToJSON)(value['clarification']),
64
73
  'nextSteps': value['nextSteps'] == null ? undefined : (value['nextSteps'].map(WidgetNextStep_1.WidgetNextStepToJSON)),
74
+ 'codeChanges': (0, WidgetCodeChanges_1.WidgetCodeChangesToJSON)(value['codeChanges']),
75
+ 'startedBy': value['startedBy'],
65
76
  };
66
77
  }
@@ -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/personal/workflows`, 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.
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
- * Organization the widget belongs to. You must be a member who may create widgets there.
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
- * Whether the widget lives in your personal workspace or in an organization's.
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];
@@ -23,7 +23,6 @@ exports.NewWidgetToJSONTyped = NewWidgetToJSONTyped;
23
23
  * @export
24
24
  */
25
25
  exports.NewWidgetWorkspaceTypeEnum = {
26
- Personal: 'personal',
27
26
  Organization: 'organization'
28
27
  };
29
28
  /**
@@ -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) holds, and the newest entries of that account's ledger. A partner with no administrator reads 0 and an empty list.
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
+ }
@@ -99,6 +99,12 @@ export interface Upload {
99
99
  * @memberof Upload
100
100
  */
101
101
  purpose?: UploadPurposeEnum | null;
102
+ /**
103
+ * The Media Library folder the file belongs to when it is part of the brand kit (for example `Brand kit/Fonts/Inter` or `Brand kit/Logos`), or null for every other file
104
+ * @type {string}
105
+ * @memberof Upload
106
+ */
107
+ library_folder_path?: string | null;
102
108
  }
103
109
  /**
104
110
  * @export
@@ -90,6 +90,7 @@ function UploadFromJSONTyped(json, ignoreDiscriminator) {
90
90
  'conversation_id': json['conversation_id'] == null ? undefined : json['conversation_id'],
91
91
  'managed_user_id': json['managed_user_id'] == null ? undefined : json['managed_user_id'],
92
92
  'purpose': json['purpose'] == null ? undefined : json['purpose'],
93
+ 'library_folder_path': json['library_folder_path'] == null ? undefined : json['library_folder_path'],
93
94
  };
94
95
  }
95
96
  function UploadToJSON(json) {
@@ -114,5 +115,6 @@ function UploadToJSONTyped(value, ignoreDiscriminator = false) {
114
115
  'conversation_id': value['conversation_id'],
115
116
  'managed_user_id': value['managed_user_id'],
116
117
  'purpose': value['purpose'],
118
+ 'library_folder_path': value['library_folder_path'],
117
119
  };
118
120
  }
@@ -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>}