@widgetic/api-sdk-ts 1.11.109 → 2.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 (196) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +130 -0
  3. package/dist/apis/BrandKitApi.js +381 -0
  4. package/dist/apis/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +255 -155
  6. package/dist/apis/CompositionsApi.js +333 -133
  7. package/dist/apis/CreditsApi.d.ts +7 -7
  8. package/dist/apis/CreditsApi.js +1 -1
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/PartnersApi.d.ts +125 -125
  17. package/dist/apis/PartnersApi.js +11 -11
  18. package/dist/apis/PublicEmbedApi.d.ts +42 -42
  19. package/dist/apis/PublicEmbedApi.js +29 -29
  20. package/dist/apis/UploadsApi.d.ts +38 -38
  21. package/dist/apis/UploadsApi.js +60 -60
  22. package/dist/apis/UsersApi.d.ts +40 -40
  23. package/dist/apis/UsersApi.js +4 -4
  24. package/dist/apis/WidgetsApi.d.ts +23 -23
  25. package/dist/apis/WidgetsApi.js +36 -36
  26. package/dist/apis/WorkflowsApi.d.ts +85 -127
  27. package/dist/apis/WorkflowsApi.js +82 -192
  28. package/dist/apis/index.d.ts +1 -2
  29. package/dist/apis/index.js +1 -2
  30. package/dist/esm/apis/BrandKitApi.js +344 -0
  31. package/dist/esm/apis/CompositionsApi.js +333 -133
  32. package/dist/esm/apis/CreditsApi.js +2 -2
  33. package/dist/esm/apis/InvoicesApi.js +1 -1
  34. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  35. package/dist/esm/apis/OperationsApi.js +6 -6
  36. package/dist/esm/apis/PartnersApi.js +12 -12
  37. package/dist/esm/apis/PublicEmbedApi.js +30 -30
  38. package/dist/esm/apis/UploadsApi.js +60 -60
  39. package/dist/esm/apis/UsersApi.js +5 -5
  40. package/dist/esm/apis/WidgetsApi.js +37 -37
  41. package/dist/esm/apis/WorkflowsApi.js +82 -192
  42. package/dist/esm/apis/index.js +1 -2
  43. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  44. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  45. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  46. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  47. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  48. package/dist/esm/models/BrandColor.js +64 -0
  49. package/dist/esm/models/BrandFont.js +72 -0
  50. package/dist/esm/models/BrandKitAssetView.js +96 -0
  51. package/dist/esm/models/BrandKitFigmaSource.js +59 -0
  52. package/dist/esm/models/BrandKitTokens.js +56 -0
  53. package/dist/esm/models/BrandKitTokensFonts.js +48 -0
  54. package/dist/esm/models/BrandKitView.js +75 -0
  55. package/dist/esm/models/BrandKitViewOwner.js +54 -0
  56. package/dist/esm/models/BrandKitViewResponse.js +51 -0
  57. package/dist/esm/models/BrandSpacing.js +71 -0
  58. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  59. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  60. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  61. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  62. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  63. package/dist/esm/models/GetOperationResponse.js +51 -0
  64. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +9 -9
  65. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  66. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  67. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  68. package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
  69. package/dist/esm/models/PatchBrandKitRequest.js +54 -0
  70. package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
  71. package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
  72. package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
  73. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  74. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  75. package/dist/esm/models/PutBrandKitRequest.js +49 -0
  76. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  77. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  78. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  79. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  80. package/dist/esm/models/WorkflowStats.js +3 -0
  81. package/dist/esm/models/index.js +36 -19
  82. package/dist/esm/runtime.js +1 -1
  83. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  84. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  85. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  86. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  87. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  88. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  89. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  90. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  91. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  92. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  93. package/dist/models/BrandColor.d.ts +60 -0
  94. package/dist/models/BrandColor.js +72 -0
  95. package/dist/models/BrandFont.d.ts +73 -0
  96. package/dist/models/BrandFont.js +80 -0
  97. package/dist/models/BrandKitAssetView.d.ts +130 -0
  98. package/dist/models/BrandKitAssetView.js +104 -0
  99. package/dist/models/BrandKitFigmaSource.d.ts +56 -0
  100. package/dist/models/BrandKitFigmaSource.js +66 -0
  101. package/dist/models/BrandKitTokens.d.ts +53 -0
  102. package/dist/models/BrandKitTokens.js +63 -0
  103. package/dist/models/BrandKitTokensFonts.d.ts +51 -0
  104. package/dist/models/BrandKitTokensFonts.js +55 -0
  105. package/dist/models/BrandKitView.d.ts +90 -0
  106. package/dist/models/BrandKitView.js +82 -0
  107. package/dist/models/BrandKitViewOwner.d.ts +46 -0
  108. package/dist/models/BrandKitViewOwner.js +62 -0
  109. package/dist/models/BrandKitViewResponse.d.ts +46 -0
  110. package/dist/models/BrandKitViewResponse.js +58 -0
  111. package/dist/models/BrandSpacing.d.ts +74 -0
  112. package/dist/models/BrandSpacing.js +78 -0
  113. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  114. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  115. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  116. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  117. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  118. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  119. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  120. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  121. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  122. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  123. package/dist/models/GetOperationResponse.d.ts +46 -0
  124. package/dist/models/GetOperationResponse.js +58 -0
  125. package/dist/models/{OperationsIdGetResponseData.d.ts → GetOperationResponseData.d.ts} +19 -19
  126. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +15 -15
  127. package/dist/models/ListUploads200Response.d.ts +46 -0
  128. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  129. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  130. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  131. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  132. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  133. package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
  134. package/dist/models/PatchBrandKitAssetRequest.js +76 -0
  135. package/dist/models/PatchBrandKitRequest.d.ts +65 -0
  136. package/dist/models/PatchBrandKitRequest.js +61 -0
  137. package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
  138. package/dist/models/PatchBrandKitRequestFonts.js +55 -0
  139. package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
  140. package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
  141. package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
  142. package/dist/models/PostBrandKitIconRequest.js +54 -0
  143. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  144. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  145. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  146. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  147. package/dist/models/PutBrandKitRequest.d.ts +46 -0
  148. package/dist/models/PutBrandKitRequest.js +56 -0
  149. package/dist/models/Upload.d.ts +1 -1
  150. package/dist/models/UploadLimits.d.ts +3 -3
  151. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  152. package/dist/models/WorkflowDetailResponse.js +58 -0
  153. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  154. package/dist/models/WorkflowFailureReason.js +57 -0
  155. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  156. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  157. package/dist/models/WorkflowResponse.d.ts +46 -0
  158. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  159. package/dist/models/WorkflowStats.d.ts +16 -1
  160. package/dist/models/WorkflowStats.js +3 -0
  161. package/dist/models/index.d.ts +36 -19
  162. package/dist/models/index.js +36 -19
  163. package/dist/runtime.d.ts +2 -2
  164. package/dist/runtime.js +1 -1
  165. package/package.json +1 -1
  166. package/dist/apis/PartnerApi.d.ts +0 -2595
  167. package/dist/apis/PartnerApi.js +0 -6749
  168. package/dist/apis/WorkspacesApi.d.ts +0 -352
  169. package/dist/apis/WorkspacesApi.js +0 -946
  170. package/dist/esm/apis/PartnerApi.js +0 -6712
  171. package/dist/esm/apis/WorkspacesApi.js +0 -909
  172. package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
  173. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  174. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  175. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  176. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  177. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  178. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  179. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  180. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  181. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  182. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  183. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  184. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  185. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  186. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  187. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  188. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  189. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  190. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  191. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  192. package/dist/models/UploadsGet200Response.d.ts +0 -46
  193. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  194. package/dist/models/UploadsIdDelete200Response.js +0 -58
  195. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  196. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -10,73 +10,70 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateWorkspaceWorkflowFromPreset201Response, CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, DeleteWorkspaceWorkflow200Response, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListPartnerWorkflowPresets200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, OfferWorkflowPresetRequest, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, RemovePartnerWorkflowPreset200Response, SaveWorkspaceWorkflow200Response, SaveWorkspaceWorkflowRequest, SetPartnerWorkflowPreset200Response } from '../models/index';
14
- export interface ArchiveWorkspaceWorkflow0Request {
13
+ import type { CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, DeleteWorkspaceWorkflow200Response, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, SaveWorkspaceWorkflowRequest, WorkflowDetailResponse, WorkflowResponse } from '../models/index';
14
+ export interface ArchiveWorkspaceWorkflowRequest {
15
15
  workspaceId: string;
16
16
  workflowId: string;
17
17
  xManagedUserId?: string;
18
18
  xManagedUserExternalId?: string;
19
19
  }
20
- export interface CreateWorkspaceWorkflowFromPreset0Request {
20
+ export interface CreateWorkspaceWorkflowOperationRequest {
21
21
  workspaceId: string;
22
22
  idempotencyKey: string;
23
- createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
23
+ createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
24
24
  xManagedUserId?: string;
25
25
  xManagedUserExternalId?: string;
26
26
  }
27
- export interface CreateWorkspaceWorkflow0Request {
27
+ export interface CreateWorkspaceWorkflowFromPresetOperationRequest {
28
28
  workspaceId: string;
29
29
  idempotencyKey: string;
30
- createWorkspaceWorkflowRequest: CreateWorkspaceWorkflowRequest;
30
+ createWorkspaceWorkflowFromPresetRequest: CreateWorkspaceWorkflowFromPresetRequest;
31
31
  xManagedUserId?: string;
32
32
  xManagedUserExternalId?: string;
33
33
  }
34
- export interface DeleteWorkspaceWorkflow0Request {
34
+ export interface DeleteWorkspaceWorkflowRequest {
35
35
  workspaceId: string;
36
36
  workflowId: string;
37
37
  xManagedUserId?: string;
38
38
  xManagedUserExternalId?: string;
39
39
  }
40
- export interface DiscardWorkspaceWorkflowChanges0Request {
40
+ export interface DiscardWorkspaceWorkflowChangesRequest {
41
41
  workspaceId: string;
42
42
  workflowId: string;
43
43
  publishWorkspaceWorkflowRequest: PublishWorkspaceWorkflowRequest;
44
44
  xManagedUserId?: string;
45
45
  xManagedUserExternalId?: string;
46
46
  }
47
- export interface DuplicateWorkspaceWorkflow0Request {
47
+ export interface DuplicateWorkspaceWorkflowRequest {
48
48
  workspaceId: string;
49
49
  workflowId: string;
50
50
  idempotencyKey: string;
51
51
  xManagedUserId?: string;
52
52
  xManagedUserExternalId?: string;
53
53
  }
54
- export interface GetWorkspaceWorkflowStats0Request {
54
+ export interface GetWorkspaceWorkflowRequest {
55
55
  workspaceId: string;
56
56
  workflowId: string;
57
- versionId?: string;
58
- from?: string;
59
- to?: string;
60
57
  xManagedUserId?: string;
61
58
  xManagedUserExternalId?: string;
62
59
  }
63
- export interface GetWorkspaceWorkflowVersion0Request {
60
+ export interface GetWorkspaceWorkflowStatsRequest {
64
61
  workspaceId: string;
65
62
  workflowId: string;
66
- versionId: string;
63
+ versionId?: string;
64
+ from?: string;
65
+ to?: string;
67
66
  xManagedUserId?: string;
68
67
  xManagedUserExternalId?: string;
69
68
  }
70
- export interface GetWorkspaceWorkflow0Request {
69
+ export interface GetWorkspaceWorkflowVersionRequest {
71
70
  workspaceId: string;
72
71
  workflowId: string;
72
+ versionId: string;
73
73
  xManagedUserId?: string;
74
74
  xManagedUserExternalId?: string;
75
75
  }
76
- export interface ListPartnerWorkflowPresets1Request {
77
- partnerId: string;
78
- }
79
- export interface ListWorkspaceWorkflowCompositionOptions0Request {
76
+ export interface ListWorkspaceWorkflowCompositionOptionsRequest {
80
77
  workspaceId: string;
81
78
  search?: string;
82
79
  ids?: string;
@@ -85,34 +82,34 @@ export interface ListWorkspaceWorkflowCompositionOptions0Request {
85
82
  xManagedUserId?: string;
86
83
  xManagedUserExternalId?: string;
87
84
  }
88
- export interface ListWorkspaceWorkflowPresets0Request {
85
+ export interface ListWorkspaceWorkflowPresetsRequest {
89
86
  workspaceId: string;
90
87
  xManagedUserId?: string;
91
88
  xManagedUserExternalId?: string;
92
89
  }
93
- export interface ListWorkspaceWorkflowVersions0Request {
90
+ export interface ListWorkspaceWorkflowVersionsRequest {
94
91
  workspaceId: string;
95
92
  workflowId: string;
96
93
  xManagedUserId?: string;
97
94
  xManagedUserExternalId?: string;
98
95
  }
99
- export interface ListWorkspaceWorkflows0Request {
96
+ export interface ListWorkspaceWorkflowsRequest {
100
97
  workspaceId: string;
101
98
  search?: string;
102
- status?: ListWorkspaceWorkflows0StatusEnum;
99
+ status?: ListWorkspaceWorkflowsStatusEnum;
103
100
  sort?: string;
104
101
  limit?: number;
105
102
  offset?: number;
106
103
  xManagedUserId?: string;
107
104
  xManagedUserExternalId?: string;
108
105
  }
109
- export interface PauseWorkspaceWorkflow0Request {
106
+ export interface PauseWorkspaceWorkflowRequest {
110
107
  workspaceId: string;
111
108
  workflowId: string;
112
109
  xManagedUserId?: string;
113
110
  xManagedUserExternalId?: string;
114
111
  }
115
- export interface PublishWorkspaceWorkflow0Request {
112
+ export interface PublishWorkspaceWorkflowOperationRequest {
116
113
  workspaceId: string;
117
114
  workflowId: string;
118
115
  idempotencyKey: string;
@@ -120,11 +117,7 @@ export interface PublishWorkspaceWorkflow0Request {
120
117
  xManagedUserId?: string;
121
118
  xManagedUserExternalId?: string;
122
119
  }
123
- export interface RemovePartnerWorkflowPreset1Request {
124
- partnerId: string;
125
- key: string;
126
- }
127
- export interface RestoreWorkspaceWorkflowVersion0Request {
120
+ export interface RestoreWorkspaceWorkflowVersionRequest {
128
121
  workspaceId: string;
129
122
  workflowId: string;
130
123
  versionId: string;
@@ -132,25 +125,20 @@ export interface RestoreWorkspaceWorkflowVersion0Request {
132
125
  xManagedUserId?: string;
133
126
  xManagedUserExternalId?: string;
134
127
  }
135
- export interface ResumeWorkspaceWorkflow0Request {
128
+ export interface ResumeWorkspaceWorkflowRequest {
136
129
  workspaceId: string;
137
130
  workflowId: string;
138
131
  xManagedUserId?: string;
139
132
  xManagedUserExternalId?: string;
140
133
  }
141
- export interface SaveWorkspaceWorkflow0Request {
134
+ export interface SaveWorkspaceWorkflowOperationRequest {
142
135
  workspaceId: string;
143
136
  workflowId: string;
144
137
  saveWorkspaceWorkflowRequest: SaveWorkspaceWorkflowRequest;
145
138
  xManagedUserId?: string;
146
139
  xManagedUserExternalId?: string;
147
140
  }
148
- export interface SetPartnerWorkflowPreset1Request {
149
- partnerId: string;
150
- key: string;
151
- offerWorkflowPresetRequest: OfferWorkflowPresetRequest;
152
- }
153
- export interface UnarchiveWorkspaceWorkflow0Request {
141
+ export interface UnarchiveWorkspaceWorkflowRequest {
154
142
  workspaceId: string;
155
143
  workflowId: string;
156
144
  xManagedUserId?: string;
@@ -164,231 +152,201 @@ export declare class WorkflowsApi extends runtime.BaseAPI {
164
152
  * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
165
153
  * Archive a Workflow
166
154
  */
167
- archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
155
+ archiveWorkspaceWorkflowRaw(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
168
156
  /**
169
157
  * Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can archive.
170
158
  * Archive a Workflow
171
159
  */
172
- archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
173
- /**
174
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
175
- * Start a Workflow from a starting point
176
- */
177
- createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
178
- /**
179
- * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
180
- * Start a Workflow from a starting point
181
- */
182
- createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPreset0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
160
+ archiveWorkspaceWorkflow(requestParameters: ArchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
183
161
  /**
184
162
  * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
185
163
  * Create a Workflow
186
164
  */
187
- createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
165
+ createWorkspaceWorkflowRaw(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
188
166
  /**
189
167
  * Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can create one.
190
168
  * Create a Workflow
191
169
  */
192
- createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
170
+ createWorkspaceWorkflow(requestParameters: CreateWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
171
+ /**
172
+ * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
173
+ * Start a Workflow from a starting point
174
+ */
175
+ createWorkspaceWorkflowFromPresetRaw(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
176
+ /**
177
+ * Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point\'s published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the original), and a draft workflow wired like the starting point\'s live version. The workflow is named as you ask, or after the starting point. Nothing you do to the copy reaches the starting point, and nothing its offerer changes afterwards reaches your copy. The workflow stays a draft: publish it when it is ready. A start takes a few seconds, because each widget is copied. Send an `Idempotency-Key` so that asking again after a timeout makes one copy. When a start fails (503 with `details.reason` `preset_copy_failed`) the compositions it made are removed again, so asking again is safe; the widget copies it made stay in the workspace as ordinary widgets. The workspace\'s limit of workflows is checked before anything is copied. A starting point that is not offered to you, or that can no longer be started, is 404. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can start one.
178
+ * Start a Workflow from a starting point
179
+ */
180
+ createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
193
181
  /**
194
182
  * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
195
183
  * Delete a Workflow
196
184
  */
197
- deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
185
+ deleteWorkspaceWorkflowRaw(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteWorkspaceWorkflow200Response>>;
198
186
  /**
199
187
  * Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed\'s first composition, as for a paused one. Asking for a workflow that is already gone is \"not found\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can delete.
200
188
  * Delete a Workflow
201
189
  */
202
- deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
190
+ deleteWorkspaceWorkflow(requestParameters: DeleteWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteWorkspaceWorkflow200Response>;
203
191
  /**
204
192
  * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
205
193
  * Discard the Unpublished Changes of a Workflow
206
194
  */
207
- discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
195
+ discardWorkspaceWorkflowChangesRaw(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
208
196
  /**
209
197
  * Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can discard.
210
198
  * Discard the Unpublished Changes of a Workflow
211
199
  */
212
- discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChanges0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
200
+ discardWorkspaceWorkflowChanges(requestParameters: DiscardWorkspaceWorkflowChangesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
213
201
  /**
214
202
  * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
215
203
  * Duplicate a Workflow
216
204
  */
217
- duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
205
+ duplicateWorkspaceWorkflowRaw(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
218
206
  /**
219
207
  * Makes a draft copy of a workflow (its draft graph, not its versions or counts), named \"<name> (copy)\". For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can duplicate.
220
208
  * Duplicate a Workflow
221
209
  */
222
- duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
210
+ duplicateWorkspaceWorkflow(requestParameters: DuplicateWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
211
+ /**
212
+ * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
213
+ * Get a Workflow
214
+ */
215
+ getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
223
216
  /**
224
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
217
+ * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
218
+ * Get a Workflow
219
+ */
220
+ getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
221
+ /**
222
+ * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
225
223
  * Get what Visitors Did in a Workflow
226
224
  */
227
- getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStats0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
225
+ getWorkspaceWorkflowStatsRaw(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowStats200Response>>;
228
226
  /**
229
- * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
227
+ * Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor\'s browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
230
228
  * Get what Visitors Did in a Workflow
231
229
  */
232
- getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStats0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
230
+ getWorkspaceWorkflowStats(requestParameters: GetWorkspaceWorkflowStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowStats200Response>;
233
231
  /**
234
232
  * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
235
233
  * Get a Published Version of a Workflow
236
234
  */
237
- getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
235
+ getWorkspaceWorkflowVersionRaw(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWorkspaceWorkflowVersion200Response>>;
238
236
  /**
239
237
  * One published version with its graph, for the read-only preview and for the Runs view. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
240
238
  * Get a Published Version of a Workflow
241
239
  */
242
- getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
243
- /**
244
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
245
- * Get a Workflow
246
- */
247
- getWorkspaceWorkflowRaw(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
248
- /**
249
- * Reads a workflow with its draft graph and the version that is live. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
250
- * Get a Workflow
251
- */
252
- getWorkspaceWorkflow(requestParameters: GetWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
253
- /**
254
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
255
- * List the workflows a partner offers as places to start
256
- */
257
- listPartnerWorkflowPresetsRaw(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPartnerWorkflowPresets200Response>>;
258
- /**
259
- * The partner\'s starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account\'s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
260
- * List the workflows a partner offers as places to start
261
- */
262
- listPartnerWorkflowPresets(requestParameters: ListPartnerWorkflowPresets1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerWorkflowPresets200Response>;
240
+ getWorkspaceWorkflowVersion(requestParameters: GetWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWorkspaceWorkflowVersion200Response>;
263
241
  /**
264
242
  * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
265
243
  * List the compositions a workflow can show, and what each can do
266
244
  */
267
- listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
245
+ listWorkspaceWorkflowCompositionOptionsRaw(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowCompositionOptions200Response>>;
268
246
  /**
269
247
  * The workspace\'s compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - **Input added** (`inputs`) is enabled only for a composition that declares at least one table a visitor\'s entries can be written to. Its `tables` are all of them; its `fields` are the columns a rule may read (not `id` and `created_at`, not a column that is not text, a number or yes/no, and not one whose name says it holds a person\'s private details, such as an email or a phone number). - **Action in the widget** (`actions`) is enabled only when the published widget version declares at least one goal. Its `items` are the goals a trigger can wait for. When one of them is not enabled, `reason` says why (`widget_keeps_no_data`, `widget_reports_no_actions` or `widget_not_published`), so the editor can show the trigger disabled with an explanation. Publishing checks every reference again against what the composition can do at that moment. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read it.
270
248
  * List the compositions a workflow can show, and what each can do
271
249
  */
272
- listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
250
+ listWorkspaceWorkflowCompositionOptions(requestParameters: ListWorkspaceWorkflowCompositionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowCompositionOptions200Response>;
273
251
  /**
274
252
  * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
275
253
  * List the starting points for a new Workflow
276
254
  */
277
- listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
255
+ listWorkspaceWorkflowPresetsRaw(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowPresets200Response>>;
278
256
  /**
279
257
  * The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner\'s managed users, that the partner offers (a managed user is never shown Widgetic\'s, and a person is never shown a partner\'s). Only what can be started now is listed, in the order the offerer set (smallest `position` first, then by `key`). Each shows what you would get, and none shows who made it or any id of its own. Start from one with `createWorkspaceWorkflowFromPreset`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
280
258
  * List the starting points for a new Workflow
281
259
  */
282
- listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
260
+ listWorkspaceWorkflowPresets(requestParameters: ListWorkspaceWorkflowPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowPresets200Response>;
283
261
  /**
284
262
  * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
285
263
  * List the Published Versions of a Workflow
286
264
  */
287
- listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
265
+ listWorkspaceWorkflowVersionsRaw(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflowVersions200Response>>;
288
266
  /**
289
267
  * Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
290
268
  * List the Published Versions of a Workflow
291
269
  */
292
- listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
270
+ listWorkspaceWorkflowVersions(requestParameters: ListWorkspaceWorkflowVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflowVersions200Response>;
293
271
  /**
294
272
  * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
295
273
  * List the Workflows of a Workspace
296
274
  */
297
- listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
275
+ listWorkspaceWorkflowsRaw(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaceWorkflows200Response>>;
298
276
  /**
299
277
  * Lists the workspace\'s workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read the list.
300
278
  * List the Workflows of a Workspace
301
279
  */
302
- listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflows0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
280
+ listWorkspaceWorkflows(requestParameters: ListWorkspaceWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListWorkspaceWorkflows200Response>;
303
281
  /**
304
282
  * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
305
283
  * Pause a Workflow
306
284
  */
307
- pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
285
+ pauseWorkspaceWorkflowRaw(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
308
286
  /**
309
287
  * While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can pause.
310
288
  * Pause a Workflow
311
289
  */
312
- pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
290
+ pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
313
291
  /**
314
292
  * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
315
293
  * Publish the Draft of a Workflow
316
294
  */
317
- publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
295
+ publishWorkspaceWorkflowRaw(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWorkspaceWorkflow200Response>>;
318
296
  /**
319
297
  * Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visitor adds to, a goal the widget reports, the websites it may be embedded on), so a workflow never goes live pointing at something that has gone. It is refused with 422 (`BUSINESS_OPERATION_INVALID`) when the draft has errors; the `issues` in the error\'s `details` name the blocks to fix: an unconnected trigger, a condition without rules, a composition that is not published, a field or action that is gone, a composition whose allowed websites exclude the site the workflow starts on. Nothing is published when the draft has no changes since the live version. The `revision` is the one the editor read, and a publish of a draft that has moved on is refused with 409. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can publish.
320
298
  * Publish the Draft of a Workflow
321
299
  */
322
- publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
323
- /**
324
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
325
- * Stop offering a workflow as a place to start
326
- */
327
- removePartnerWorkflowPresetRaw(requestParameters: RemovePartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemovePartnerWorkflowPreset200Response>>;
328
- /**
329
- * Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
330
- * Stop offering a workflow as a place to start
331
- */
332
- removePartnerWorkflowPreset(requestParameters: RemovePartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemovePartnerWorkflowPreset200Response>;
300
+ publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
333
301
  /**
334
302
  * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
335
303
  * Restore a Version of a Workflow into the Draft
336
304
  */
337
- restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWorkspaceWorkflowFromPreset201Response>>;
305
+ restoreWorkspaceWorkflowVersionRaw(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>>;
338
306
  /**
339
307
  * Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can restore.
340
308
  * Restore a Version of a Workflow into the Draft
341
309
  */
342
- restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersion0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
310
+ restoreWorkspaceWorkflowVersion(requestParameters: RestoreWorkspaceWorkflowVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
343
311
  /**
344
312
  * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
345
313
  * Resume a Paused Workflow
346
314
  */
347
- resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
315
+ resumeWorkspaceWorkflowRaw(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
348
316
  /**
349
317
  * Makes a paused workflow live again, on the version that was live when it was paused. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can resume.
350
318
  * Resume a Paused Workflow
351
319
  */
352
- resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
320
+ resumeWorkspaceWorkflow(requestParameters: ResumeWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
353
321
  /**
354
322
  * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
355
323
  * Save the Draft of a Workflow
356
324
  */
357
- saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
325
+ saveWorkspaceWorkflowRaw(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
358
326
  /**
359
327
  * Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow again and apply the change to it. A save is never refused for what is wrong with the graph (a block with no connection yet is normal in a draft): only the shape is judged here, and what stops a workflow going live is told when it is published. A graph larger than 200,000 bytes, or with more than 100 blocks or 300 connections, is refused. An archived workflow cannot be saved. Saving a live workflow changes the draft only: visitors keep getting the published version until the changes are published. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can save.
360
328
  * Save the Draft of a Workflow
361
329
  */
362
- saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
363
- /**
364
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
365
- * Offer a workflow as a place to start, or replace what a key offers
366
- */
367
- setPartnerWorkflowPresetRaw(requestParameters: SetPartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetPartnerWorkflowPreset200Response>>;
368
- /**
369
- * Offers one of the partner account\'s own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow\'s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account\'s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner\'s workflow on its behalf.
370
- * Offer a workflow as a place to start, or replace what a key offers
371
- */
372
- setPartnerWorkflowPreset(requestParameters: SetPartnerWorkflowPreset1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetPartnerWorkflowPreset200Response>;
330
+ saveWorkspaceWorkflow(requestParameters: SaveWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
373
331
  /**
374
332
  * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
375
333
  * Unarchive a Workflow
376
334
  */
377
- unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveWorkspaceWorkflow200Response>>;
335
+ unarchiveWorkspaceWorkflowRaw(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowResponse>>;
378
336
  /**
379
337
  * Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. For personal workspace, use \'personal\' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can unarchive.
380
338
  * Unarchive a Workflow
381
339
  */
382
- unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflow0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
340
+ unarchiveWorkspaceWorkflow(requestParameters: UnarchiveWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowResponse>;
383
341
  }
384
342
  /**
385
343
  * @export
386
344
  */
387
- export declare const ListWorkspaceWorkflows0StatusEnum: {
345
+ export declare const ListWorkspaceWorkflowsStatusEnum: {
388
346
  readonly Draft: 'draft';
389
347
  readonly Live: 'live';
390
348
  readonly Paused: 'paused';
391
349
  readonly Archived: 'archived';
392
350
  readonly All: 'all';
393
351
  };
394
- export type ListWorkspaceWorkflows0StatusEnum = typeof ListWorkspaceWorkflows0StatusEnum[keyof typeof ListWorkspaceWorkflows0StatusEnum];
352
+ export type ListWorkspaceWorkflowsStatusEnum = typeof ListWorkspaceWorkflowsStatusEnum[keyof typeof ListWorkspaceWorkflowsStatusEnum];