@octonodes/sdk 0.2.13 → 0.2.26

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 (134) hide show
  1. package/README.md +36 -0
  2. package/dist/data-tables/table.d.ts +90 -0
  3. package/dist/data-tables/table.d.ts.map +1 -0
  4. package/dist/data-tables/table.js +44 -0
  5. package/dist/data-tables/table.js.map +1 -0
  6. package/dist/data-tables/types.d.ts +24 -0
  7. package/dist/data-tables/types.d.ts.map +1 -0
  8. package/dist/data-tables/types.js +3 -0
  9. package/dist/data-tables/types.js.map +1 -0
  10. package/dist/gen/types.gen.d.ts +129 -2
  11. package/dist/gen/types.gen.d.ts.map +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/octonode-client.d.ts +87 -0
  15. package/dist/octonode-client.d.ts.map +1 -1
  16. package/dist/octonode-client.js +4 -0
  17. package/dist/octonode-client.js.map +1 -1
  18. package/dist/plugins/schema/app/contributions.d.ts +355 -0
  19. package/dist/plugins/schema/app/contributions.d.ts.map +1 -0
  20. package/dist/plugins/schema/app/contributions.js +179 -0
  21. package/dist/plugins/schema/app/contributions.js.map +1 -0
  22. package/dist/plugins/schema/app-contributions.d.ts +355 -0
  23. package/dist/plugins/schema/app-contributions.d.ts.map +1 -0
  24. package/dist/plugins/schema/app-contributions.js +179 -0
  25. package/dist/plugins/schema/app-contributions.js.map +1 -0
  26. package/dist/plugins/schema/app.d.ts +506 -1
  27. package/dist/plugins/schema/app.d.ts.map +1 -1
  28. package/dist/plugins/schema/app.js +59 -5
  29. package/dist/plugins/schema/app.js.map +1 -1
  30. package/dist/plugins/schema/constants.d.ts +2 -1
  31. package/dist/plugins/schema/constants.d.ts.map +1 -1
  32. package/dist/plugins/schema/constants.js +3 -1
  33. package/dist/plugins/schema/constants.js.map +1 -1
  34. package/dist/plugins/schema/icons.d.ts +4 -0
  35. package/dist/plugins/schema/icons.d.ts.map +1 -1
  36. package/dist/plugins/schema/icons.js +20 -1
  37. package/dist/plugins/schema/icons.js.map +1 -1
  38. package/dist/plugins/schema/ipc/envelope.d.ts +923 -0
  39. package/dist/plugins/schema/ipc/envelope.d.ts.map +1 -0
  40. package/dist/plugins/schema/ipc/envelope.js +210 -0
  41. package/dist/plugins/schema/ipc/envelope.js.map +1 -0
  42. package/dist/plugins/schema/ipc-envelope.d.ts +55 -55
  43. package/dist/plugins/schema/ipc-envelope.js +1 -1
  44. package/dist/plugins/schema/ipc-envelope.js.map +1 -1
  45. package/dist/plugins/schema/personal/layout.d.ts +52 -0
  46. package/dist/plugins/schema/personal/layout.d.ts.map +1 -0
  47. package/dist/plugins/schema/personal/layout.js +26 -0
  48. package/dist/plugins/schema/personal/layout.js.map +1 -0
  49. package/dist/plugins/schema/personal-layout.d.ts +52 -0
  50. package/dist/plugins/schema/personal-layout.d.ts.map +1 -0
  51. package/dist/plugins/schema/personal-layout.js +26 -0
  52. package/dist/plugins/schema/personal-layout.js.map +1 -0
  53. package/dist/plugins/schema/plugin/execution.d.ts +843 -44
  54. package/dist/plugins/schema/plugin/execution.d.ts.map +1 -1
  55. package/dist/plugins/schema/plugin/execution.js +2 -2
  56. package/dist/plugins/schema/plugin/execution.js.map +1 -1
  57. package/dist/plugins/schema/plugin/plugin.d.ts +802 -39
  58. package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -1
  59. package/dist/plugins/schema/plugin/plugin.js +82 -6
  60. package/dist/plugins/schema/plugin/plugin.js.map +1 -1
  61. package/dist/plugins/schema/plugin/publishing.d.ts +121 -68
  62. package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -1
  63. package/dist/plugins/schema/plugin/publishing.js +2 -0
  64. package/dist/plugins/schema/plugin/publishing.js.map +1 -1
  65. package/dist/plugins/schema/plugin-publishing.d.ts +68 -68
  66. package/dist/plugins/schema/plugin-sdk/index.d.ts +2 -1
  67. package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
  68. package/dist/plugins/schema/plugin-sdk/index.js +2 -1
  69. package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
  70. package/dist/plugins/schema/plugin.d.ts +36 -36
  71. package/dist/plugins/sdk/constants.d.ts +2 -0
  72. package/dist/plugins/sdk/constants.d.ts.map +1 -0
  73. package/dist/plugins/sdk/constants.js +6 -0
  74. package/dist/plugins/sdk/constants.js.map +1 -0
  75. package/dist/plugins/sdk/define/node.d.ts +15 -0
  76. package/dist/plugins/sdk/define/node.d.ts.map +1 -0
  77. package/dist/plugins/sdk/define/node.js +58 -0
  78. package/dist/plugins/sdk/define/node.js.map +1 -0
  79. package/dist/plugins/sdk/define-node.d.ts +5 -0
  80. package/dist/plugins/sdk/define-node.d.ts.map +1 -1
  81. package/dist/plugins/sdk/define-node.js +1 -1
  82. package/dist/plugins/sdk/define-node.js.map +1 -1
  83. package/dist/plugins/sdk/definitions/clients/output.d.ts +3 -0
  84. package/dist/plugins/sdk/definitions/clients/output.d.ts.map +1 -0
  85. package/dist/plugins/sdk/definitions/clients/output.js +47 -0
  86. package/dist/plugins/sdk/definitions/clients/output.js.map +1 -0
  87. package/dist/plugins/sdk/definitions/compiler/catalog.d.ts.map +1 -1
  88. package/dist/plugins/sdk/definitions/compiler/catalog.js +9 -0
  89. package/dist/plugins/sdk/definitions/compiler/catalog.js.map +1 -1
  90. package/dist/plugins/sdk/definitions/compiler/index.d.ts.map +1 -1
  91. package/dist/plugins/sdk/definitions/compiler/index.js +59 -2
  92. package/dist/plugins/sdk/definitions/compiler/index.js.map +1 -1
  93. package/dist/plugins/sdk/definitions/npm/emit/js.d.ts.map +1 -1
  94. package/dist/plugins/sdk/definitions/npm/emit/js.js +7 -3
  95. package/dist/plugins/sdk/definitions/npm/emit/js.js.map +1 -1
  96. package/dist/plugins/sdk/definitions/npm/types.d.ts +35 -2
  97. package/dist/plugins/sdk/definitions/npm/types.d.ts.map +1 -1
  98. package/dist/plugins/sdk/definitions/types.d.ts +10 -3
  99. package/dist/plugins/sdk/definitions/types.d.ts.map +1 -1
  100. package/dist/plugins/sdk/json/schema.d.ts +13 -0
  101. package/dist/plugins/sdk/json/schema.d.ts.map +1 -0
  102. package/dist/plugins/sdk/json/schema.js +102 -0
  103. package/dist/plugins/sdk/json/schema.js.map +1 -0
  104. package/dist/plugins/sdk/json-schema.js +13 -0
  105. package/dist/plugins/sdk/json-schema.js.map +1 -1
  106. package/dist/plugins/sdk/nodes/index.d.ts +3 -1
  107. package/dist/plugins/sdk/nodes/index.d.ts.map +1 -1
  108. package/dist/plugins/sdk/nodes/index.js +5 -0
  109. package/dist/plugins/sdk/nodes/index.js.map +1 -1
  110. package/dist/plugins/sdk/plugin/index.d.ts +1 -0
  111. package/dist/plugins/sdk/plugin/index.d.ts.map +1 -1
  112. package/dist/plugins/sdk/plugin.d.ts +1 -1
  113. package/dist/plugins/sdk/plugin.d.ts.map +1 -1
  114. package/dist/plugins/sdk/plugin.js +2 -2
  115. package/dist/plugins/sdk/plugin.js.map +1 -1
  116. package/dist/plugins/sdk/plugins/define/node.d.ts +29 -0
  117. package/dist/plugins/sdk/plugins/define/node.d.ts.map +1 -0
  118. package/dist/plugins/sdk/plugins/define/node.js +16 -0
  119. package/dist/plugins/sdk/plugins/define/node.js.map +1 -0
  120. package/dist/plugins/sdk/plugins/index.d.ts +5 -4
  121. package/dist/plugins/sdk/plugins/index.d.ts.map +1 -1
  122. package/dist/plugins/sdk/plugins/index.js +21 -15
  123. package/dist/plugins/sdk/plugins/index.js.map +1 -1
  124. package/dist/plugins/sdk/plugins/types.d.ts +1 -1
  125. package/dist/plugins/sdk/plugins/types.d.ts.map +1 -1
  126. package/dist/plugins/sdk/runner.d.ts +3 -7
  127. package/dist/plugins/sdk/runner.d.ts.map +1 -1
  128. package/dist/plugins/sdk/runner.js +61 -18
  129. package/dist/plugins/sdk/runner.js.map +1 -1
  130. package/dist/plugins/sdk/types.d.ts +115 -0
  131. package/dist/plugins/sdk/types.d.ts.map +1 -0
  132. package/dist/plugins/sdk/types.js +3 -0
  133. package/dist/plugins/sdk/types.js.map +1 -0
  134. package/package.json +1 -1
package/README.md CHANGED
@@ -54,6 +54,42 @@ await octonode.executions.api.runId.cancel.post({
54
54
  For example, `GET /api/projects/{projectId}` maps to
55
55
  `octonode.projects.api.projectId.get({ path: { projectId } })`.
56
56
 
57
+ ## Data tables
58
+
59
+ Bind a table once using its workspace and table ID from Studio's **API** tab:
60
+
61
+ ```ts
62
+ const client = createClient(process.env.OCTONODE_API_TOKEN!, {
63
+ url: "https://api.octonodes.com",
64
+ });
65
+ const table = client.table("customers", {
66
+ workspace: { kind: "team", id: "TEAM_ID" },
67
+ });
68
+
69
+ const { rows, nextCursor } = await table.rows.list({ limit: 50 });
70
+ if (nextCursor) {
71
+ const nextPage = await table.rows.list({ limit: 50, cursor: nextCursor });
72
+ }
73
+ const row = await table.rows.insert({ name: "Ada" });
74
+ await table.rows.update(row.id, {
75
+ data: { name: "Ada Lovelace" },
76
+ expectedVersion: row.version,
77
+ });
78
+ await table.rows.delete(row.id);
79
+ const schema = await table.get();
80
+ await table.update({ description: "Customer contacts" });
81
+ const result = await table.sql('SELECT * FROM "customers" LIMIT 10');
82
+ ```
83
+
84
+ Workspace kinds are `org`, `team`, and `user`. The table ID identifies both global and
85
+ project tables; permissions are enforced by the server. Updates replace the row data;
86
+ a stale `expectedVersion` throws the server's 409 error. SQL is read-only and requires
87
+ SQLite storage. `table.delete()` permanently deletes the table and all its rows.
88
+
89
+ For a trusted local server, use `createClient("local", { url: "http://localhost:4000" })`
90
+ and `client.table("customers", { projectId: "PROJECT_ID" })`. The placeholder token is
91
+ only for a local server that requires no authentication.
92
+
57
93
  ## Streaming operations
58
94
 
59
95
  Workflow runs and execution events use server-sent events. Iterate over the returned stream:
@@ -0,0 +1,90 @@
1
+ import type { Client } from "../gen/client";
2
+ import type { DataTableScope, DataTableRow, ListRowsOptions, UpdateTableInput, UpdateRowInput, DataTableSqlResult } from "./types";
3
+ /** Bind a table once; all requests reuse the client's authentication and transport. */
4
+ export declare function dataTable(client: Client, tableId: string, scope: DataTableScope): {
5
+ get: () => Promise<{
6
+ id: string;
7
+ projectId: string;
8
+ name: string;
9
+ slug: string;
10
+ description?: string;
11
+ storageMode: "sqlite" | "kv_blob";
12
+ columns: Array<{
13
+ id: string;
14
+ key: string;
15
+ name: string;
16
+ type: "text" | "number" | "boolean" | "date" | "datetime" | "json";
17
+ required: boolean;
18
+ defaultValue?: unknown;
19
+ position: number;
20
+ }>;
21
+ rowCount: number;
22
+ schemaVersion: number;
23
+ createdAt: number;
24
+ updatedAt: number;
25
+ }>;
26
+ update: (body: UpdateTableInput) => Promise<{
27
+ id: string;
28
+ projectId: string;
29
+ name: string;
30
+ slug: string;
31
+ description?: string;
32
+ storageMode: "sqlite" | "kv_blob";
33
+ columns: Array<{
34
+ id: string;
35
+ key: string;
36
+ name: string;
37
+ type: "text" | "number" | "boolean" | "date" | "datetime" | "json";
38
+ required: boolean;
39
+ defaultValue?: unknown;
40
+ position: number;
41
+ }>;
42
+ rowCount: number;
43
+ schemaVersion: number;
44
+ createdAt: number;
45
+ updatedAt: number;
46
+ }>;
47
+ delete: () => Promise<{
48
+ ok: boolean;
49
+ }>;
50
+ rows: {
51
+ list: (query?: ListRowsOptions) => Promise<{
52
+ rows: Array<{
53
+ id: string;
54
+ tableId: string;
55
+ data: {
56
+ [key: string]: unknown;
57
+ };
58
+ version: number;
59
+ createdAt: number;
60
+ updatedAt: number;
61
+ }>;
62
+ nextCursor?: string;
63
+ }>;
64
+ insert: (data: DataTableRow["data"]) => Promise<{
65
+ id: string;
66
+ tableId: string;
67
+ data: {
68
+ [key: string]: unknown;
69
+ };
70
+ version: number;
71
+ createdAt: number;
72
+ updatedAt: number;
73
+ }>;
74
+ update: (rowId: string, body: UpdateRowInput) => Promise<{
75
+ id: string;
76
+ tableId: string;
77
+ data: {
78
+ [key: string]: unknown;
79
+ };
80
+ version: number;
81
+ createdAt: number;
82
+ updatedAt: number;
83
+ }>;
84
+ delete: (rowId: string) => Promise<{
85
+ ok: boolean;
86
+ }>;
87
+ };
88
+ sql: (sql: string) => Promise<DataTableSqlResult>;
89
+ };
90
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/data-tables/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EACV,cAAc,EAEd,YAAY,EAEZ,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAOjB,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc;;;;;;;;;;;;;;wBAuC2shF,CAAC;;;;;;;;mBA3BzwhF,gBAAgB;;;;;;;;;;;;;wBA2BwvhF,CAAC;;;;;;;;;YA1B/uhF,OAAO;;;uBAE/B,eAAe;;;;;;;;;;;;;uBAEf,YAAY,CAAC,MAAM,CAAC;;;;;;;;;;wBAEnB,MAAM,QAAQ,cAAc;;;;;;;;;;wBAM5B,MAAM;gBACO,OAAO;;;eAK3B,MAAM;EAOpB"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataTable = dataTable;
4
+ function segment(value) {
5
+ if (!value?.trim() || value === "." || value === "..")
6
+ throw new Error("A non-empty resource ID is required");
7
+ return encodeURIComponent(value);
8
+ }
9
+ /** Bind a table once; all requests reuse the client's authentication and transport. */
10
+ function dataTable(client, tableId, scope) {
11
+ if (scope.workspace && !["org", "team", "user"].includes(scope.workspace.kind)) {
12
+ throw new Error("Workspace kind must be org, team, or user");
13
+ }
14
+ const collection = scope.workspace
15
+ ? `/workspaces/${scope.workspace.kind}/${segment(scope.workspace.id)}/data-tables`
16
+ : `/api/projects/${segment(scope.projectId)}/data-tables`;
17
+ const url = `${collection}/${segment(tableId)}`;
18
+ const options = { responseStyle: "data", throwOnError: true };
19
+ const json = { ...options, headers: { "Content-Type": "application/json" } };
20
+ return {
21
+ get: () => client.get({ ...options, url }),
22
+ update: (body) => client.patch({ ...json, url, body }),
23
+ delete: () => client.delete({ ...options, url }),
24
+ rows: {
25
+ list: (query) => client.get({ ...options, url: `${url}/rows`, query }),
26
+ insert: (data) => client.post({ ...json, url: `${url}/rows`, body: { data } }),
27
+ update: (rowId, body) => client.patch({
28
+ ...json,
29
+ url: `${url}/rows/${segment(rowId)}`,
30
+ body,
31
+ }),
32
+ delete: (rowId) => client.delete({
33
+ ...options,
34
+ url: `${url}/rows/${segment(rowId)}`,
35
+ }),
36
+ },
37
+ sql: (sql) => client.post({
38
+ ...json,
39
+ url: scope.workspace ? `${url}/sql` : `${collection}/sql`,
40
+ body: { sql },
41
+ }),
42
+ };
43
+ }
44
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/data-tables/table.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,24 @@
1
+ import type { GetApiProjectsByProjectIdDataTablesByTableIdResponse, GetApiProjectsByProjectIdDataTablesByTableIdRowsData, GetApiProjectsByProjectIdDataTablesByTableIdRowsResponse, PatchApiProjectsByProjectIdDataTablesByTableIdData, PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdData, PostApiProjectsByProjectIdDataTablesByTableIdRowsResponse } from "../gen/types.gen";
2
+ export type DataTableScope = {
3
+ workspace: {
4
+ kind: "org" | "team" | "user";
5
+ id: string;
6
+ };
7
+ projectId?: never;
8
+ } | {
9
+ projectId: string;
10
+ workspace?: never;
11
+ };
12
+ export type DataTable = GetApiProjectsByProjectIdDataTablesByTableIdResponse;
13
+ export type DataTableRow = PostApiProjectsByProjectIdDataTablesByTableIdRowsResponse;
14
+ export type DataTableRows = GetApiProjectsByProjectIdDataTablesByTableIdRowsResponse;
15
+ export type ListRowsOptions = GetApiProjectsByProjectIdDataTablesByTableIdRowsData["query"];
16
+ export type UpdateTableInput = PatchApiProjectsByProjectIdDataTablesByTableIdData["body"];
17
+ export type UpdateRowInput = PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdData["body"];
18
+ export interface DataTableSqlResult {
19
+ columns: string[];
20
+ rows: unknown[][];
21
+ rowCount: number;
22
+ durationMs: number;
23
+ }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/data-tables/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oDAAoD,EACpD,oDAAoD,EACpD,wDAAwD,EACxD,kDAAkD,EAClD,6DAA6D,EAC7D,yDAAyD,EAC1D,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,cAAc,GACtB;IAAE,SAAS,EAAE;QAAE,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,GAC/E;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC7C,MAAM,MAAM,SAAS,GAAG,oDAAoD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,yDAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,wDAAwD,CAAC;AACrF,MAAM,MAAM,eAAe,GAAG,oDAAoD,CAAC,OAAO,CAAC,CAAC;AAC5F,MAAM,MAAM,gBAAgB,GAAG,kDAAkD,CAAC,MAAM,CAAC,CAAC;AAC1F,MAAM,MAAM,cAAc,GAAG,6DAA6D,CAAC,MAAM,CAAC,CAAC;AACnG,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/data-tables/types.ts"],"names":[],"mappings":""}
@@ -408,6 +408,7 @@ export type GetApiMarketplaceAppsResponses = {
408
408
  apiVersion: '1';
409
409
  hosting: 'self-hosted';
410
410
  applicationUrl: string;
411
+ icon?: 'arrow-up-down' | 'binary' | 'bomb' | 'boxes' | 'braces' | 'calculator' | 'calendar' | 'camera' | 'clock' | 'code' | 'copy-x' | 'database' | 'dices' | 'filter' | 'flag' | 'flask' | 'function' | 'git-branch' | 'git-merge' | 'group' | 'hook' | 'list-filter' | 'merge' | 'octagon-x' | 'package' | 'package-x' | 'pencil' | 'play' | 'regex' | 'repeat' | 'replace' | 'ruler' | 'scan-eye' | 'scissors' | 'search' | 'server-cog' | 'settings' | 'sigma' | 'split' | 'terminal' | 'test-tube' | 'text-cursor-input' | 'ticket' | 'truck' | 'type' | 'typescript' | 'ungroup' | 'variable' | 'wand' | 'wave' | 'webhook' | 'workflow' | 'x';
411
412
  iconUrl?: string;
412
413
  privacyUrl?: string;
413
414
  supportUrl?: string;
@@ -423,6 +424,7 @@ export type GetApiMarketplaceAppsResponses = {
423
424
  } | {
424
425
  apiVersion: '2';
425
426
  hosting: 'extension-only';
427
+ icon?: 'arrow-up-down' | 'binary' | 'bomb' | 'boxes' | 'braces' | 'calculator' | 'calendar' | 'camera' | 'clock' | 'code' | 'copy-x' | 'database' | 'dices' | 'filter' | 'flag' | 'flask' | 'function' | 'git-branch' | 'git-merge' | 'group' | 'hook' | 'list-filter' | 'merge' | 'octagon-x' | 'package' | 'package-x' | 'pencil' | 'play' | 'regex' | 'repeat' | 'replace' | 'ruler' | 'scan-eye' | 'scissors' | 'search' | 'server-cog' | 'settings' | 'sigma' | 'split' | 'terminal' | 'test-tube' | 'text-cursor-input' | 'ticket' | 'truck' | 'type' | 'typescript' | 'ungroup' | 'variable' | 'wand' | 'wave' | 'webhook' | 'workflow' | 'x';
426
428
  iconUrl?: string;
427
429
  settings?: Array<{
428
430
  id: string;
@@ -438,6 +440,46 @@ export type GetApiMarketplaceAppsResponses = {
438
440
  path: string;
439
441
  sha256: string;
440
442
  }>;
443
+ } | {
444
+ apiVersion: '3';
445
+ hosting: 'extension-only';
446
+ icon?: 'arrow-up-down' | 'binary' | 'bomb' | 'boxes' | 'braces' | 'calculator' | 'calendar' | 'camera' | 'clock' | 'code' | 'copy-x' | 'database' | 'dices' | 'filter' | 'flag' | 'flask' | 'function' | 'git-branch' | 'git-merge' | 'group' | 'hook' | 'list-filter' | 'merge' | 'octagon-x' | 'package' | 'package-x' | 'pencil' | 'play' | 'regex' | 'repeat' | 'replace' | 'ruler' | 'scan-eye' | 'scissors' | 'search' | 'server-cog' | 'settings' | 'sigma' | 'split' | 'terminal' | 'test-tube' | 'text-cursor-input' | 'ticket' | 'truck' | 'type' | 'typescript' | 'ungroup' | 'variable' | 'wand' | 'wave' | 'webhook' | 'workflow' | 'x';
447
+ iconUrl?: string;
448
+ settings?: Array<{
449
+ id: string;
450
+ label: string;
451
+ defaultValue?: string;
452
+ }>;
453
+ privacyUrl?: string;
454
+ supportUrl?: string;
455
+ requestedActions?: Array<'projects:read' | 'data:read' | 'data:write' | 'workflows:run'>;
456
+ extensions: Array<{
457
+ id: string;
458
+ target: 'app.page' | 'workspace.block' | 'shell.panel' | 'shell.dock' | 'project.tab' | 'project.overview.block' | 'workflow.tab' | 'workflow.inspector.block' | 'node.view' | 'node.inspector.tab' | 'node.inspector.block' | 'task.space.view' | 'task.details.tab' | 'task.details.block' | 'task.card.badge' | 'document.tab' | 'document.panel' | 'editor.panel' | 'git.diff.panel' | 'table.view' | 'execution.details.block' | 'app.settings.section' | 'project.settings.section' | 'project.action' | 'file.action' | 'editor.action' | 'editor.selection-action' | 'workflow.action' | 'workflow.canvas.action' | 'workflow.selection-action' | 'workflow.edge.action' | 'node.action' | 'task.space.action' | 'task.action' | 'document.action' | 'document.selection-action' | 'document.block.action' | 'document.slash-command' | 'document.review.action' | 'git.diff.action' | 'table.action' | 'execution.action';
459
+ title: string;
460
+ icon?: 'arrow-up-down' | 'binary' | 'bomb' | 'boxes' | 'braces' | 'calculator' | 'calendar' | 'camera' | 'clock' | 'code' | 'copy-x' | 'database' | 'dices' | 'filter' | 'flag' | 'flask' | 'function' | 'git-branch' | 'git-merge' | 'group' | 'hook' | 'list-filter' | 'merge' | 'octagon-x' | 'package' | 'package-x' | 'pencil' | 'play' | 'regex' | 'repeat' | 'replace' | 'ruler' | 'scan-eye' | 'scissors' | 'search' | 'server-cog' | 'settings' | 'sigma' | 'split' | 'terminal' | 'test-tube' | 'text-cursor-input' | 'ticket' | 'truck' | 'type' | 'typescript' | 'ungroup' | 'variable' | 'wand' | 'wave' | 'webhook' | 'workflow' | 'x';
461
+ path: string;
462
+ sha256: string;
463
+ when?: {
464
+ hasProject?: boolean;
465
+ hasSelection?: boolean;
466
+ readOnly?: boolean;
467
+ nodeKind?: string;
468
+ documentFormat?: 'markdown' | 'html' | 'latex';
469
+ };
470
+ }>;
471
+ launchers?: Array<{
472
+ id: string;
473
+ target: 'shell.navbar.action' | 'shell.navigation.item' | 'shell.command';
474
+ title: string;
475
+ icon?: 'arrow-up-down' | 'binary' | 'bomb' | 'boxes' | 'braces' | 'calculator' | 'calendar' | 'camera' | 'clock' | 'code' | 'copy-x' | 'database' | 'dices' | 'filter' | 'flag' | 'flask' | 'function' | 'git-branch' | 'git-merge' | 'group' | 'hook' | 'list-filter' | 'merge' | 'octagon-x' | 'package' | 'package-x' | 'pencil' | 'play' | 'regex' | 'repeat' | 'replace' | 'ruler' | 'scan-eye' | 'scissors' | 'search' | 'server-cog' | 'settings' | 'sigma' | 'split' | 'terminal' | 'test-tube' | 'text-cursor-input' | 'ticket' | 'truck' | 'type' | 'typescript' | 'ungroup' | 'variable' | 'wand' | 'wave' | 'webhook' | 'workflow' | 'x';
476
+ opens: string;
477
+ }>;
478
+ locales?: {
479
+ [key: string]: {
480
+ [key: string]: string;
481
+ };
482
+ };
441
483
  };
442
484
  }>;
443
485
  total: number;
@@ -495,6 +537,7 @@ export type GetApiRunsData = {
495
537
  path?: never;
496
538
  query?: {
497
539
  project?: string;
540
+ allProjects?: boolean;
498
541
  workflowId?: string;
499
542
  search?: string;
500
543
  status?: 'ok' | 'error' | 'partial';
@@ -511,6 +554,7 @@ export type GetApiRunsResponses = {
511
554
  */
512
555
  200: {
513
556
  items: Array<{
557
+ projectId?: string;
514
558
  runId: string;
515
559
  workflowId: string;
516
560
  status: 'ok' | 'error' | 'partial';
@@ -582,7 +626,9 @@ export type GetApiRunsByRunIdData = {
582
626
  path: {
583
627
  runId: string;
584
628
  };
585
- query?: never;
629
+ query?: {
630
+ project?: string;
631
+ };
586
632
  url: '/api/runs/{runId}';
587
633
  };
588
634
  export type GetApiRunsByRunIdErrors = {
@@ -599,6 +645,7 @@ export type GetApiRunsByRunIdResponses = {
599
645
  * Success
600
646
  */
601
647
  200: {
648
+ projectId?: string;
602
649
  runId: string;
603
650
  workflowId: string;
604
651
  status: 'ok' | 'error' | 'partial';
@@ -1768,7 +1815,10 @@ export type GetApiProjectsSearchData = {
1768
1815
  path?: never;
1769
1816
  query?: {
1770
1817
  summary?: 'true';
1818
+ workspace?: string;
1771
1819
  q?: string;
1820
+ sort?: 'name' | 'name-desc' | 'workflows';
1821
+ source?: 'repository' | 'managed';
1772
1822
  offset?: number;
1773
1823
  limit?: number;
1774
1824
  cloud?: 'true';
@@ -1929,6 +1979,10 @@ export type GetApiProjectsByProjectIdFilesContentResponses = {
1929
1979
  mtime: number;
1930
1980
  revision: string;
1931
1981
  conflict?: boolean;
1982
+ compilerOptions?: {
1983
+ [key: string]: boolean | number | Array<string>;
1984
+ };
1985
+ compilerError?: string;
1932
1986
  };
1933
1987
  };
1934
1988
  export type GetApiProjectsByProjectIdFilesContentResponse = GetApiProjectsByProjectIdFilesContentResponses[keyof GetApiProjectsByProjectIdFilesContentResponses];
@@ -1974,6 +2028,10 @@ export type PostApiProjectsByProjectIdFilesContentResponses = {
1974
2028
  mtime: number;
1975
2029
  revision: string;
1976
2030
  conflict?: boolean;
2031
+ compilerOptions?: {
2032
+ [key: string]: boolean | number | Array<string>;
2033
+ };
2034
+ compilerError?: string;
1977
2035
  };
1978
2036
  };
1979
2037
  export type PostApiProjectsByProjectIdFilesContentResponse = PostApiProjectsByProjectIdFilesContentResponses[keyof PostApiProjectsByProjectIdFilesContentResponses];
@@ -2020,6 +2078,10 @@ export type PutApiProjectsByProjectIdFilesContentResponses = {
2020
2078
  mtime: number;
2021
2079
  revision: string;
2022
2080
  conflict?: boolean;
2081
+ compilerOptions?: {
2082
+ [key: string]: boolean | number | Array<string>;
2083
+ };
2084
+ compilerError?: string;
2023
2085
  };
2024
2086
  };
2025
2087
  export type PutApiProjectsByProjectIdFilesContentResponse = PutApiProjectsByProjectIdFilesContentResponses[keyof PutApiProjectsByProjectIdFilesContentResponses];
@@ -3231,6 +3293,9 @@ export type GetApiNodesByNodeIdSourceResponses = {
3231
3293
  line: number;
3232
3294
  column: number;
3233
3295
  };
3296
+ sourceRevision?: string;
3297
+ currentSourceRevision?: string;
3298
+ stale?: boolean;
3234
3299
  };
3235
3300
  };
3236
3301
  export type GetApiNodesByNodeIdSourceResponse = GetApiNodesByNodeIdSourceResponses[keyof GetApiNodesByNodeIdSourceResponses];
@@ -3802,7 +3867,8 @@ export type GetApiWorkflowsResponses = {
3802
3867
  export type GetApiWorkflowsResponse = GetApiWorkflowsResponses[keyof GetApiWorkflowsResponses];
3803
3868
  export type PostApiWorkflowsData = {
3804
3869
  body: {
3805
- id: string;
3870
+ id?: string;
3871
+ label?: string;
3806
3872
  description?: string;
3807
3873
  };
3808
3874
  path?: never;
@@ -4018,11 +4084,19 @@ export type GetApiWorkflowsByWorkflowIdGraphResponses = {
4018
4084
  sourceExpressions?: {
4019
4085
  [key: string]: string;
4020
4086
  };
4087
+ sourceScope?: boolean;
4088
+ hasSdkClient?: boolean;
4021
4089
  kind?: 'function' | 'class' | 'service' | 'const';
4022
4090
  setup?: {
4023
4091
  [key: string]: unknown;
4024
4092
  };
4025
4093
  provides?: Array<string>;
4094
+ sourceLocation?: {
4095
+ path: string;
4096
+ line: number;
4097
+ column: number;
4098
+ };
4099
+ serviceLifecycle?: 'invocation' | 'workflow-run' | 'worker';
4026
4100
  runtime?: {
4027
4101
  timeout_ms?: number;
4028
4102
  retries?: number;
@@ -4307,11 +4381,19 @@ export type PostApiWorkflowsByWorkflowIdTopologyErrors = {
4307
4381
  sourceExpressions?: {
4308
4382
  [key: string]: string;
4309
4383
  };
4384
+ sourceScope?: boolean;
4385
+ hasSdkClient?: boolean;
4310
4386
  kind?: 'function' | 'class' | 'service' | 'const';
4311
4387
  setup?: {
4312
4388
  [key: string]: unknown;
4313
4389
  };
4314
4390
  provides?: Array<string>;
4391
+ sourceLocation?: {
4392
+ path: string;
4393
+ line: number;
4394
+ column: number;
4395
+ };
4396
+ serviceLifecycle?: 'invocation' | 'workflow-run' | 'worker';
4315
4397
  runtime?: {
4316
4398
  timeout_ms?: number;
4317
4399
  retries?: number;
@@ -4489,11 +4571,19 @@ export type PostApiWorkflowsByWorkflowIdTopologyResponses = {
4489
4571
  sourceExpressions?: {
4490
4572
  [key: string]: string;
4491
4573
  };
4574
+ sourceScope?: boolean;
4575
+ hasSdkClient?: boolean;
4492
4576
  kind?: 'function' | 'class' | 'service' | 'const';
4493
4577
  setup?: {
4494
4578
  [key: string]: unknown;
4495
4579
  };
4496
4580
  provides?: Array<string>;
4581
+ sourceLocation?: {
4582
+ path: string;
4583
+ line: number;
4584
+ column: number;
4585
+ };
4586
+ serviceLifecycle?: 'invocation' | 'workflow-run' | 'worker';
4497
4587
  runtime?: {
4498
4588
  timeout_ms?: number;
4499
4589
  retries?: number;
@@ -4736,6 +4826,9 @@ export type GetApiMarketplacePluginsByIdData = {
4736
4826
  q?: string;
4737
4827
  offset?: number;
4738
4828
  limit?: number;
4829
+ version?: string;
4830
+ versionOffset?: number;
4831
+ versionLimit?: number;
4739
4832
  scope?: string;
4740
4833
  };
4741
4834
  url: '/api/marketplace/plugins/{id}';
@@ -4754,6 +4847,7 @@ export type GetApiMarketplacePluginsByIdResponses = {
4754
4847
  * Success
4755
4848
  */
4756
4849
  200: {
4850
+ installedAt?: number | null;
4757
4851
  id: string;
4758
4852
  name: string;
4759
4853
  version: string;
@@ -4809,12 +4903,19 @@ export type GetApiMarketplacePluginsByIdResponses = {
4809
4903
  };
4810
4904
  };
4811
4905
  }>;
4906
+ nextVersionOffset?: number | null;
4812
4907
  library?: {
4813
4908
  format: 1;
4814
4909
  entry: 'library/index.js';
4815
4910
  types: 'library/index.d.ts';
4816
4911
  exports: Array<string>;
4817
4912
  };
4913
+ contents?: {
4914
+ types: Array<string>;
4915
+ services: Array<string>;
4916
+ constants: Array<string>;
4917
+ classes: Array<string>;
4918
+ };
4818
4919
  official?: boolean;
4819
4920
  installCount?: number;
4820
4921
  ratingCount?: number;
@@ -4877,6 +4978,7 @@ export type GetApiPluginsResponses = {
4877
4978
  * Success
4878
4979
  */
4879
4980
  200: Array<{
4981
+ installedAt?: number | null;
4880
4982
  id: string;
4881
4983
  name: string;
4882
4984
  version: string;
@@ -4940,6 +5042,12 @@ export type GetApiPluginsSearchData = {
4940
5042
  path?: never;
4941
5043
  query?: {
4942
5044
  q?: string;
5045
+ category?: string;
5046
+ source?: 'store' | 'workspace' | 'project' | 'user';
5047
+ sort?: 'name' | 'installed' | 'nodes';
5048
+ direction?: 'asc' | 'desc';
5049
+ installedAfter?: string;
5050
+ installedBefore?: string;
4943
5051
  offset?: number;
4944
5052
  limit?: number;
4945
5053
  global?: 'true';
@@ -4952,7 +5060,11 @@ export type GetApiPluginsSearchResponses = {
4952
5060
  * Success
4953
5061
  */
4954
5062
  200: {
5063
+ facets: {
5064
+ categories: Array<string>;
5065
+ };
4955
5066
  items: Array<{
5067
+ installedAt?: number | null;
4956
5068
  id: string;
4957
5069
  name: string;
4958
5070
  version: string;
@@ -5117,6 +5229,7 @@ export type GetApiPluginsByPluginIdResponses = {
5117
5229
  * Success
5118
5230
  */
5119
5231
  200: {
5232
+ installedAt?: number | null;
5120
5233
  id: string;
5121
5234
  name: string;
5122
5235
  version: string;
@@ -5182,6 +5295,12 @@ export type GetApiPluginsByPluginIdResponses = {
5182
5295
  types: 'library/index.d.ts';
5183
5296
  exports: Array<string>;
5184
5297
  };
5298
+ contents?: {
5299
+ types: Array<string>;
5300
+ services: Array<string>;
5301
+ constants: Array<string>;
5302
+ classes: Array<string>;
5303
+ };
5185
5304
  installed: true;
5186
5305
  connections?: {
5187
5306
  [key: string]: {
@@ -5305,11 +5424,19 @@ export type PostApiPluginsByPluginIdNodesByNodeIdAddResponses = {
5305
5424
  sourceExpressions?: {
5306
5425
  [key: string]: string;
5307
5426
  };
5427
+ sourceScope?: boolean;
5428
+ hasSdkClient?: boolean;
5308
5429
  kind?: 'function' | 'class' | 'service' | 'const';
5309
5430
  setup?: {
5310
5431
  [key: string]: unknown;
5311
5432
  };
5312
5433
  provides?: Array<string>;
5434
+ sourceLocation?: {
5435
+ path: string;
5436
+ line: number;
5437
+ column: number;
5438
+ };
5439
+ serviceLifecycle?: 'invocation' | 'workflow-run' | 'worker';
5313
5440
  runtime?: {
5314
5441
  timeout_ms?: number;
5315
5442
  retries?: number;