@archastro/sdk 0.10.0 → 0.11.1

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 (91) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +15 -1
  4. package/dist/client.js.map +1 -1
  5. package/dist/custom-object-subscriptions.d.ts.map +1 -1
  6. package/dist/custom-object-subscriptions.js +116 -25
  7. package/dist/custom-object-subscriptions.js.map +1 -1
  8. package/dist/types/ai.d.ts +2 -2
  9. package/dist/types/chat.d.ts +30 -30
  10. package/dist/types/common.d.ts +625 -0
  11. package/dist/types/common.d.ts.map +1 -1
  12. package/dist/types/common.js +136 -1
  13. package/dist/types/common.js.map +1 -1
  14. package/dist/types/extractions.d.ts +36 -0
  15. package/dist/types/extractions.d.ts.map +1 -1
  16. package/dist/types/index.d.ts +1 -0
  17. package/dist/types/index.d.ts.map +1 -1
  18. package/dist/types/index.js +2 -1
  19. package/dist/types/index.js.map +1 -1
  20. package/dist/types/status.d.ts +121 -0
  21. package/dist/types/status.d.ts.map +1 -0
  22. package/dist/types/status.js +18 -0
  23. package/dist/types/status.js.map +1 -0
  24. package/dist/types/tasks.d.ts +254 -0
  25. package/dist/types/tasks.d.ts.map +1 -1
  26. package/dist/types/tasks.js +52 -1
  27. package/dist/types/tasks.js.map +1 -1
  28. package/dist/types/threads.d.ts +2 -2
  29. package/dist/v1/resources/activity_feed.d.ts +1 -1
  30. package/dist/v1/resources/activity_feed.js +2 -2
  31. package/dist/v1/resources/custom_objects.d.ts +31 -16
  32. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  33. package/dist/v1/resources/custom_objects.js +35 -16
  34. package/dist/v1/resources/custom_objects.js.map +1 -1
  35. package/dist/v1/resources/files.d.ts +19 -0
  36. package/dist/v1/resources/files.d.ts.map +1 -1
  37. package/dist/v1/resources/files.js +3 -1
  38. package/dist/v1/resources/files.js.map +1 -1
  39. package/dist/v1/resources/index.d.ts +7 -0
  40. package/dist/v1/resources/index.d.ts.map +1 -1
  41. package/dist/v1/resources/index.js +8 -1
  42. package/dist/v1/resources/index.js.map +1 -1
  43. package/dist/v1/resources/private_service_definitions.d.ts +12 -0
  44. package/dist/v1/resources/private_service_definitions.d.ts.map +1 -0
  45. package/dist/v1/resources/private_service_definitions.js +18 -0
  46. package/dist/v1/resources/private_service_definitions.js.map +1 -0
  47. package/dist/v1/resources/private_service_enrollments.d.ts +42 -0
  48. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -0
  49. package/dist/v1/resources/private_service_enrollments.js +56 -0
  50. package/dist/v1/resources/private_service_enrollments.js.map +1 -0
  51. package/dist/v1/resources/private_services.d.ts +46 -0
  52. package/dist/v1/resources/private_services.d.ts.map +1 -0
  53. package/dist/v1/resources/private_services.js +55 -0
  54. package/dist/v1/resources/private_services.js.map +1 -0
  55. package/dist/v1/resources/sandboxes.d.ts +81 -0
  56. package/dist/v1/resources/sandboxes.d.ts.map +1 -0
  57. package/dist/v1/resources/sandboxes.js +84 -0
  58. package/dist/v1/resources/sandboxes.js.map +1 -0
  59. package/dist/v1/resources/status.d.ts +22 -0
  60. package/dist/v1/resources/status.d.ts.map +1 -0
  61. package/dist/v1/resources/status.js +27 -0
  62. package/dist/v1/resources/status.js.map +1 -0
  63. package/dist/v1/resources/tasks.d.ts +599 -0
  64. package/dist/v1/resources/tasks.d.ts.map +1 -0
  65. package/dist/v1/resources/tasks.js +436 -0
  66. package/dist/v1/resources/tasks.js.map +1 -0
  67. package/dist/v1/resources/teams.d.ts +390 -3
  68. package/dist/v1/resources/teams.d.ts.map +1 -1
  69. package/dist/v1/resources/teams.js +227 -4
  70. package/dist/v1/resources/teams.js.map +1 -1
  71. package/dist/v1/resources/thread_messages.d.ts +6 -3
  72. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  73. package/dist/v1/resources/thread_messages.js +5 -4
  74. package/dist/v1/resources/thread_messages.js.map +1 -1
  75. package/dist/v1/resources/threads.d.ts +39 -0
  76. package/dist/v1/resources/threads.d.ts.map +1 -1
  77. package/dist/v1/resources/threads.js +36 -1
  78. package/dist/v1/resources/threads.js.map +1 -1
  79. package/dist/v1/resources/trajectories.d.ts +34 -0
  80. package/dist/v1/resources/trajectories.d.ts.map +1 -0
  81. package/dist/v1/resources/trajectories.js +41 -0
  82. package/dist/v1/resources/trajectories.js.map +1 -0
  83. package/dist/v1/resources/users.d.ts +352 -0
  84. package/dist/v1/resources/users.d.ts.map +1 -1
  85. package/dist/v1/resources/users.js +208 -1
  86. package/dist/v1/resources/users.js.map +1 -1
  87. package/dist/v1.d.ts +14 -0
  88. package/dist/v1.d.ts.map +1 -1
  89. package/dist/v1.js +22 -1
  90. package/dist/v1.js.map +1 -1
  91. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: c7a4c205a7ab
3
+ // Content hash: 25110578ca1a
4
4
  export class ActivityFeedResource {
5
5
  http;
6
6
  constructor(http) {
@@ -17,7 +17,7 @@ export class ActivityFeedResource {
17
17
  * Invalid `kind` or `level` values return a 400 error listing the accepted
18
18
  * values rather than being silently ignored.
19
19
  * @param params - Query parameters.
20
- * @param params.kind - One or more entry kinds to include. Accepted values: routine_run, automation_run, thread_story, agent_quality_verdict, generic. Omit to return all kinds.
20
+ * @param params.kind - One or more entry kinds to include. Accepted values: routine_run, automation_run, thread_story, agent_quality_verdict, work_item_assigned, work_item_completed, generic. Omit to return all kinds.
21
21
  * @param params.level - One or more severity levels to include. Accepted values: debug, info, warn, error, audit. Omit to return all levels.
22
22
  * @param params.agent - Restrict results to entries associated with these agent IDs (`agt_...`). Accepts multiple values.
23
23
  * @param params.thread - Restrict results to entries associated with these thread IDs (`thr_...`). Accepts multiple values.
@@ -5,20 +5,24 @@ export declare class CustomObjectResource {
5
5
  constructor(http: HttpClient);
6
6
  /**
7
7
  * List custom objects
8
- * Returns a paginated list of custom objects of the given schema type that are
9
- * visible to the authenticated viewer, ordered by creation time descending.
10
- * Results span all ownership types (team-owned, user-owned, agent-owned, and
11
- * system-owned) that the viewer has access to.
12
- * Use the `row_key` param to perform an exact-match partition lookup. You may
13
- * additionally supply `sort_key` to narrow within that partition — `sort_key`
14
- * requires `row_key` and the request returns 400 if `sort_key` is provided
15
- * alone. Owner filters (`team`, `user`, `agent`, `org`) are additive: each
16
- * accepts an array of IDs and returns objects matching any of the supplied
17
- * values.
8
+ * Returns a paginated list of custom objects visible to the authenticated
9
+ * viewer, ordered by creation time descending. Results span all ownership
10
+ * types (team-owned, user-owned, agent-owned, and system-owned) that the
11
+ * viewer has access to.
12
+ * Filter by schema type with `type` (preferred) or the legacy alias
13
+ * `schema_key`. Use the `row_key` param to perform an exact-match partition
14
+ * lookup. You may additionally supply `sort_key` to narrow within that
15
+ * partition `sort_key` requires `row_key` and the request returns 400 if
16
+ * `sort_key` is provided alone. Owner filters (`team`, `user`, `agent`,
17
+ * `org`) are additive: each accepts an array of IDs (or a single ID, which
18
+ * is wrapped) and returns objects matching any of the supplied values.
18
19
  * When `query` is supplied, results are ranked by full-text relevance
19
- * (descending `ts_rank`) rather than creation time.
20
+ * (descending `ts_rank`) rather than creation time. The legacy `search`
21
+ * param performs a case-insensitive substring match and is retained for
22
+ * developer-namespace clients.
20
23
  * @param params - Query parameters.
21
- * @param params.type - Schema type identifier (`lookup_key`) to filter by. Only objects of this type are returned.
24
+ * @param params.type - Schema type identifier (`lookup_key`) to filter by. Only objects of this type are returned. Alias of `schema_key`; either name is accepted.
25
+ * @param params.schemaKey - Legacy alias for `type`. Prefer `type` on new clients. When both are supplied, `type` wins.
22
26
  * @param params.rowKey - Exact `row_key` value to match. When supplied, only objects with this partition key are returned.
23
27
  * @param params.sortKey - One or more `sort_key` values to match within the `row_key` partition. Requires `row_key` to be set.
24
28
  * @param params.team - One or more team IDs (`team_...`) to filter by owning team. Returns objects owned by any of the supplied teams.
@@ -26,12 +30,14 @@ export declare class CustomObjectResource {
26
30
  * @param params.agent - One or more agent IDs to filter by owning agent. Returns objects owned by any of the supplied agents.
27
31
  * @param params.org - One or more organization IDs (`org_...`) to filter by. Typically used by admins to query system-owned objects in a specific org.
28
32
  * @param params.query - Full-text search string matched against the schema's configured search fields. When supplied, results are ordered by relevance score descending instead of creation time descending.
33
+ * @param params.search - Case-insensitive substring search applied across the schema type and serialized field values. Deprecated — prefer `query` for full-text search. Retained for developer-namespace clients.
29
34
  * @param params.page - Page number to retrieve (1-indexed). Defaults to `1`.
30
35
  * @param params.pageSize - Number of objects per page. Defaults to `25`; maximum is `100`.
31
36
  * @returns Paginated list of custom objects matching the supplied filters.
32
37
  */
33
38
  list(params?: {
34
39
  type?: string;
40
+ schemaKey?: string;
35
41
  rowKey?: string;
36
42
  sortKey?: string[];
37
43
  team?: string[];
@@ -39,6 +45,7 @@ export declare class CustomObjectResource {
39
45
  agent?: string[];
40
46
  org?: string[];
41
47
  query?: string;
48
+ search?: string;
42
49
  page?: number;
43
50
  pageSize?: number;
44
51
  }): Promise<CustomObjectListResponse>;
@@ -47,6 +54,10 @@ export declare class CustomObjectResource {
47
54
  * Creates a new custom object of the given schema type and returns the
48
55
  * persisted object. The caller must be authenticated and authorized to create
49
56
  * objects of the specified type.
57
+ * Identify the schema with `type` (preferred), or the legacy aliases
58
+ * `schema_key` (lookup key) / `config` (config ID). Exactly one identifier is
59
+ * required; when more than one is supplied, `type` wins over `schema_key`,
60
+ * which wins over `config`.
50
61
  * Owner resolution follows a priority order: if `team` is supplied the object
51
62
  * is team-owned; if `user` is supplied it is owned by that user; if `agent` is
52
63
  * supplied it is agent-owned; otherwise the object is owned by the authenticated
@@ -59,11 +70,13 @@ export declare class CustomObjectResource {
59
70
  * @param input - Request body.
60
71
  * @param input.acl - Access control list for the custom object. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
61
72
  * @param input.agent - Agent user ID to set as the object owner. Used when neither `team` nor `user` is supplied.
62
- * @param input.fields - Key-value map of field values for the new object. Must conform to the schema's field definitions.
73
+ * @param input.config - Config ID (`cfg_...`) that resolves to the target schema. Provide one of `type`, `schema_key`, or `config`.
74
+ * @param input.fields - Key-value map of field values for the new object. Must conform to the schema's field definitions. Omit to create an object with all fields at their default or null values.
63
75
  * @param input.org - Organization ID (`org_...`) to associate with the object. Typically required for system-owned objects.
76
+ * @param input.schema_key - Legacy alias for `type` (schema `lookup_key`). Prefer `type` on new clients. Provide one of `type`, `schema_key`, or `config`.
64
77
  * @param input.system - When `true`, creates a system-owned object with no team, user, or agent owner. Requires elevated API credentials; returns 403 if the caller lacks permission.
65
78
  * @param input.team - Team ID (`team_...`) to set as the object owner. When supplied, takes priority over `user` and `agent`.
66
- * @param input.type - Schema type identifier (`lookup_key`) that defines the object's shape and validation rules.
79
+ * @param input.type - Schema type identifier (`lookup_key`) that defines the object's shape and validation rules. Preferred over the legacy `schema_key` / `config` aliases.
67
80
  * @param input.upsert - When `true` and the schema declares a `row_key`, updates the existing object at that key for the same owner instead of returning 409 Conflict. Returns HTTP 200 on update and 201 on create.
68
81
  * @param input.user - User ID (`user_...`) to set as the object owner. Used when neither `team` nor a higher-priority owner is set.
69
82
  * @returns The created (or upserted) custom object.
@@ -86,11 +99,13 @@ export declare class CustomObjectResource {
86
99
  }[] | undefined;
87
100
  } | undefined;
88
101
  agent?: string | undefined;
89
- fields: Record<string, unknown>;
102
+ config?: string | undefined;
103
+ fields?: Record<string, unknown> | undefined;
90
104
  org?: string | undefined;
105
+ schema_key?: string | undefined;
91
106
  system?: boolean | undefined;
92
107
  team?: string | undefined;
93
- type: string;
108
+ type?: string | undefined;
94
109
  upsert?: boolean | undefined;
95
110
  user?: string | undefined;
96
111
  }): Promise<CustomObject>;
@@ -1 +1 @@
1
- {"version":3,"file":"custom_objects.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/custom_objects.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,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MAAM,CAAA;iBAAE,EAAE,GAAG,SAAS,CAAC;gBAAC,MAAM,CAAC,EAAE;oBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;oBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;oBAAC,cAAc,EAAE,MAAM,CAAA;iBAAE,EAAE,GAAG,SAAS,CAAC;gBAAC,MAAM,CAAC,EAAE;oBAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;oBAAC,cAAc,EAAE,MAAM,CAAA;iBAAE,EAAE,GAAG,SAAS,CAAA;aAAE,GAAG,SAAS,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;KAAE,CAAC;CAGlpC"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 19eb175c55ac
3
+ // Content hash: a4d2251516f6
4
4
  export class CustomObjectResource {
5
5
  http;
6
6
  constructor(http) {
@@ -8,20 +8,24 @@ export class CustomObjectResource {
8
8
  }
9
9
  /**
10
10
  * List custom objects
11
- * Returns a paginated list of custom objects of the given schema type that are
12
- * visible to the authenticated viewer, ordered by creation time descending.
13
- * Results span all ownership types (team-owned, user-owned, agent-owned, and
14
- * system-owned) that the viewer has access to.
15
- * Use the `row_key` param to perform an exact-match partition lookup. You may
16
- * additionally supply `sort_key` to narrow within that partition — `sort_key`
17
- * requires `row_key` and the request returns 400 if `sort_key` is provided
18
- * alone. Owner filters (`team`, `user`, `agent`, `org`) are additive: each
19
- * accepts an array of IDs and returns objects matching any of the supplied
20
- * values.
11
+ * Returns a paginated list of custom objects visible to the authenticated
12
+ * viewer, ordered by creation time descending. Results span all ownership
13
+ * types (team-owned, user-owned, agent-owned, and system-owned) that the
14
+ * viewer has access to.
15
+ * Filter by schema type with `type` (preferred) or the legacy alias
16
+ * `schema_key`. Use the `row_key` param to perform an exact-match partition
17
+ * lookup. You may additionally supply `sort_key` to narrow within that
18
+ * partition `sort_key` requires `row_key` and the request returns 400 if
19
+ * `sort_key` is provided alone. Owner filters (`team`, `user`, `agent`,
20
+ * `org`) are additive: each accepts an array of IDs (or a single ID, which
21
+ * is wrapped) and returns objects matching any of the supplied values.
21
22
  * When `query` is supplied, results are ranked by full-text relevance
22
- * (descending `ts_rank`) rather than creation time.
23
+ * (descending `ts_rank`) rather than creation time. The legacy `search`
24
+ * param performs a case-insensitive substring match and is retained for
25
+ * developer-namespace clients.
23
26
  * @param params - Query parameters.
24
- * @param params.type - Schema type identifier (`lookup_key`) to filter by. Only objects of this type are returned.
27
+ * @param params.type - Schema type identifier (`lookup_key`) to filter by. Only objects of this type are returned. Alias of `schema_key`; either name is accepted.
28
+ * @param params.schemaKey - Legacy alias for `type`. Prefer `type` on new clients. When both are supplied, `type` wins.
25
29
  * @param params.rowKey - Exact `row_key` value to match. When supplied, only objects with this partition key are returned.
26
30
  * @param params.sortKey - One or more `sort_key` values to match within the `row_key` partition. Requires `row_key` to be set.
27
31
  * @param params.team - One or more team IDs (`team_...`) to filter by owning team. Returns objects owned by any of the supplied teams.
@@ -29,13 +33,19 @@ export class CustomObjectResource {
29
33
  * @param params.agent - One or more agent IDs to filter by owning agent. Returns objects owned by any of the supplied agents.
30
34
  * @param params.org - One or more organization IDs (`org_...`) to filter by. Typically used by admins to query system-owned objects in a specific org.
31
35
  * @param params.query - Full-text search string matched against the schema's configured search fields. When supplied, results are ordered by relevance score descending instead of creation time descending.
36
+ * @param params.search - Case-insensitive substring search applied across the schema type and serialized field values. Deprecated — prefer `query` for full-text search. Retained for developer-namespace clients.
32
37
  * @param params.page - Page number to retrieve (1-indexed). Defaults to `1`.
33
38
  * @param params.pageSize - Number of objects per page. Defaults to `25`; maximum is `100`.
34
39
  * @returns Paginated list of custom objects matching the supplied filters.
35
40
  */
36
41
  async list(params) {
37
42
  const query = {};
38
- query["type"] = params?.type;
43
+ if (params?.type !== undefined) {
44
+ query["type"] = params?.type;
45
+ }
46
+ if (params?.schemaKey !== undefined) {
47
+ query["schema_key"] = params?.schemaKey;
48
+ }
39
49
  if (params?.rowKey !== undefined) {
40
50
  query["row_key"] = params?.rowKey;
41
51
  }
@@ -57,6 +67,9 @@ export class CustomObjectResource {
57
67
  if (params?.query !== undefined) {
58
68
  query["query"] = params?.query;
59
69
  }
70
+ if (params?.search !== undefined) {
71
+ query["search"] = params?.search;
72
+ }
60
73
  if (params?.page !== undefined) {
61
74
  query["page"] = params?.page;
62
75
  }
@@ -70,6 +83,10 @@ export class CustomObjectResource {
70
83
  * Creates a new custom object of the given schema type and returns the
71
84
  * persisted object. The caller must be authenticated and authorized to create
72
85
  * objects of the specified type.
86
+ * Identify the schema with `type` (preferred), or the legacy aliases
87
+ * `schema_key` (lookup key) / `config` (config ID). Exactly one identifier is
88
+ * required; when more than one is supplied, `type` wins over `schema_key`,
89
+ * which wins over `config`.
73
90
  * Owner resolution follows a priority order: if `team` is supplied the object
74
91
  * is team-owned; if `user` is supplied it is owned by that user; if `agent` is
75
92
  * supplied it is agent-owned; otherwise the object is owned by the authenticated
@@ -82,11 +99,13 @@ export class CustomObjectResource {
82
99
  * @param input - Request body.
83
100
  * @param input.acl - Access control list for the custom object. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
84
101
  * @param input.agent - Agent user ID to set as the object owner. Used when neither `team` nor `user` is supplied.
85
- * @param input.fields - Key-value map of field values for the new object. Must conform to the schema's field definitions.
102
+ * @param input.config - Config ID (`cfg_...`) that resolves to the target schema. Provide one of `type`, `schema_key`, or `config`.
103
+ * @param input.fields - Key-value map of field values for the new object. Must conform to the schema's field definitions. Omit to create an object with all fields at their default or null values.
86
104
  * @param input.org - Organization ID (`org_...`) to associate with the object. Typically required for system-owned objects.
105
+ * @param input.schema_key - Legacy alias for `type` (schema `lookup_key`). Prefer `type` on new clients. Provide one of `type`, `schema_key`, or `config`.
87
106
  * @param input.system - When `true`, creates a system-owned object with no team, user, or agent owner. Requires elevated API credentials; returns 403 if the caller lacks permission.
88
107
  * @param input.team - Team ID (`team_...`) to set as the object owner. When supplied, takes priority over `user` and `agent`.
89
- * @param input.type - Schema type identifier (`lookup_key`) that defines the object's shape and validation rules.
108
+ * @param input.type - Schema type identifier (`lookup_key`) that defines the object's shape and validation rules. Preferred over the legacy `schema_key` / `config` aliases.
90
109
  * @param input.upsert - When `true` and the schema declares a `row_key`, updates the existing object at that key for the same owner instead of returning 409 Conflict. Returns HTTP 200 on update and 201 on create.
91
110
  * @param input.user - User ID (`user_...`) to set as the object owner. Used when neither `team` nor a higher-priority owner is set.
92
111
  * @returns The created (or upserted) custom object.
@@ -1 +1 @@
1
- {"version":3,"file":"custom_objects.js","sourceRoot":"","sources":["../../../src/v1/resources/custom_objects.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;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AAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,KAAqb;QACjd,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
@@ -24,6 +24,7 @@ export declare class FileResource {
24
24
  * invalid, or `share` is requested for a non-image content type.
25
25
  * Returns `403` when the request lacks the required app scope.
26
26
  * @param input - Request body.
27
+ * @param input.acl - Access control list for the file. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
27
28
  * @param input.agent - Agent ID (`agi_...`) to associate with this file. When provided, the file's organization is derived from the agent.
28
29
  * @param input.content_type - MIME type of the file, e.g. `"image/png"` or `"application/pdf"`.
29
30
  * @param input.data - Base64-encoded binary content of the file to upload.
@@ -35,6 +36,22 @@ export declare class FileResource {
35
36
  * @returns The newly created file, including a signed download URL.
36
37
  */
37
38
  create(input: {
39
+ acl?: {
40
+ add?: {
41
+ actions: string[];
42
+ principal?: string | undefined;
43
+ principal_type: string;
44
+ }[] | undefined;
45
+ grants?: {
46
+ actions: string[];
47
+ principal?: string | undefined;
48
+ principal_type: string;
49
+ }[] | undefined;
50
+ remove?: {
51
+ principal?: string | undefined;
52
+ principal_type: string;
53
+ }[] | undefined;
54
+ } | undefined;
38
55
  agent?: string | undefined;
39
56
  content_type: string;
40
57
  data: string;
@@ -59,11 +76,13 @@ export declare class FileResource {
59
76
  * @param file - File ID (`fil_...`) of the file to update.
60
77
  * @param input - Request body.
61
78
  * @param input.filename - New name for the file, including extension, e.g. `"report_v2.pdf"`. Omit to leave the current filename unchanged.
79
+ * @param input.provider_metadata - Arbitrary key-value map of provider-specific metadata to store alongside the file. Replaces the entire existing `provider_metadata` map. Omit to leave it unchanged.
62
80
  * @param input.share - Set `true` to mark the file publicly shareable via its stable `share_url` (image content types only), or `false` to revoke public sharing. Re-enabling sharing reactivates any previously issued share URLs for the file. Omit to leave sharing unchanged.
63
81
  * @returns The updated file, including a signed download URL.
64
82
  */
65
83
  update(file: string, input: {
66
84
  filename?: string | undefined;
85
+ provider_metadata?: Record<string, unknown> | undefined;
67
86
  share?: boolean | undefined;
68
87
  }): Promise<StorageFile>;
69
88
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAI5O;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KA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QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAO5G;;;;;;;;;;;;;;;;;;;OAmBG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAO7G;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAM5G"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 527e024036d6
3
+ // Content hash: 518b72c004c8
4
4
  export class FileResource {
5
5
  http;
6
6
  constructor(http) {
@@ -27,6 +27,7 @@ export class FileResource {
27
27
  * invalid, or `share` is requested for a non-image content type.
28
28
  * Returns `403` when the request lacks the required app scope.
29
29
  * @param input - Request body.
30
+ * @param input.acl - Access control list for the file. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
30
31
  * @param input.agent - Agent ID (`agi_...`) to associate with this file. When provided, the file's organization is derived from the agent.
31
32
  * @param input.content_type - MIME type of the file, e.g. `"image/png"` or `"application/pdf"`.
32
33
  * @param input.data - Base64-encoded binary content of the file to upload.
@@ -55,6 +56,7 @@ export class FileResource {
55
56
  * @param file - File ID (`fil_...`) of the file to update.
56
57
  * @param input - Request body.
57
58
  * @param input.filename - New name for the file, including extension, e.g. `"report_v2.pdf"`. Omit to leave the current filename unchanged.
59
+ * @param input.provider_metadata - Arbitrary key-value map of provider-specific metadata to store alongside the file. Replaces the entire existing `provider_metadata` map. Omit to leave it unchanged.
58
60
  * @param input.share - Set `true` to mark the file publicly shareable via its stable `share_url` (image content types only), or `false` to revoke public sharing. Re-enabling sharing reactivates any previously issued share URLs for the file. Omit to leave sharing unchanged.
59
61
  * @returns The updated file, including a signed download URL.
60
62
  */
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,KAAK,CAAC,MAAM,CAAC,KAAwM;QACnN,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,KAAqE;QAC9F,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,MAA2B;QACpD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,SAAS,EAAE,EAAE,KAAK,E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AE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,MAA2B;QACpD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,OAAO,CAAC,IAAY,EAAE,MAA2B;QACrD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,KAAK,CAAC,IAAY,EAAE,MAA2B;QACnD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -26,15 +26,22 @@ export { KvResource } from "./kv.js";
26
26
  export { NotificationPreferenceResource } from "./notification_preferences.js";
27
27
  export { NotificationResource } from "./notifications.js";
28
28
  export { OrgResource } from "./orgs.js";
29
+ export { PrivateServiceDefinitionResource } from "./private_service_definitions.js";
30
+ export { PrivateServiceEnrollmentResource } from "./private_service_enrollments.js";
31
+ export { PrivateServiceResource } from "./private_services.js";
32
+ export { SandboxResource } from "./sandboxes.js";
29
33
  export { SlackChannelBindingResource } from "./slack_channel_bindings.js";
30
34
  export { SolutionCategoryResource } from "./solution_categories.js";
31
35
  export { SolutionInstanceResource } from "./solution_instances.js";
32
36
  export { SolutionTagResource } from "./solution_tags.js";
33
37
  export { SolutionResource } from "./solutions.js";
38
+ export { StatuResource } from "./status.js";
39
+ export { TaskResource } from "./tasks.js";
34
40
  export { TeamMembershipResource } from "./team_memberships.js";
35
41
  export { TeamResource } from "./teams.js";
36
42
  export { ThreadMessageResource } from "./thread_messages.js";
37
43
  export { ThreadResource } from "./threads.js";
44
+ export { TrajectoryResource } from "./trajectories.js";
38
45
  export { UserResource } from "./users.js";
39
46
  export { WorkItemResource } from "./work_items.js";
40
47
  export { AiResource } from "./ai.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,E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AAM,YAAY,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 653eaf428b5c
3
+ // Content hash: 7a7740e8e991
4
4
  export { ActivityFeedResource } from "./activity_feed.js";
5
5
  export { AgentComputerResource } from "./agent_computers.js";
6
6
  export { AgentEnvVarResource } from "./agent_env_vars.js";
@@ -29,15 +29,22 @@ export { KvResource } from "./kv.js";
29
29
  export { NotificationPreferenceResource } from "./notification_preferences.js";
30
30
  export { NotificationResource } from "./notifications.js";
31
31
  export { OrgResource } from "./orgs.js";
32
+ export { PrivateServiceDefinitionResource } from "./private_service_definitions.js";
33
+ export { PrivateServiceEnrollmentResource } from "./private_service_enrollments.js";
34
+ export { PrivateServiceResource } from "./private_services.js";
35
+ export { SandboxResource } from "./sandboxes.js";
32
36
  export { SlackChannelBindingResource } from "./slack_channel_bindings.js";
33
37
  export { SolutionCategoryResource } from "./solution_categories.js";
34
38
  export { SolutionInstanceResource } from "./solution_instances.js";
35
39
  export { SolutionTagResource } from "./solution_tags.js";
36
40
  export { SolutionResource } from "./solutions.js";
41
+ export { StatuResource } from "./status.js";
42
+ export { TaskResource } from "./tasks.js";
37
43
  export { TeamMembershipResource } from "./team_memberships.js";
38
44
  export { TeamResource } from "./teams.js";
39
45
  export { ThreadMessageResource } from "./thread_messages.js";
40
46
  export { ThreadResource } from "./threads.js";
47
+ export { TrajectoryResource } from "./trajectories.js";
41
48
  export { UserResource } from "./users.js";
42
49
  export { WorkItemResource } from "./work_items.js";
43
50
  export { AiResource } from "./ai.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/resources/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;A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BAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ export declare class PrivateServiceDefinitionResource {
3
+ private http;
4
+ constructor(http: HttpClient);
5
+ /**
6
+ * Download an enrolled private service definition
7
+ * Returns the canonical callable definition authorized by an enrollment token.
8
+ * @returns Raw content
9
+ */
10
+ get(appId: string, privateServiceId: string): Promise<string>;
11
+ }
12
+ //# sourceMappingURL=private_service_definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private_service_definitions.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/private_service_definitions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,gCAAgC;IAC/B,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;OAIG;IACG,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpE"}
@@ -0,0 +1,18 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: bf15a607e306
4
+ export class PrivateServiceDefinitionResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * Download an enrolled private service definition
11
+ * Returns the canonical callable definition authorized by an enrollment token.
12
+ * @returns Raw content
13
+ */
14
+ async get(appId, privateServiceId) {
15
+ return this.http.request(`/api/v1/private_service_definitions/${appId}/${privateServiceId}`);
16
+ }
17
+ }
18
+ //# sourceMappingURL=private_service_definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private_service_definitions.js","sourceRoot":"","sources":["../../../src/v1/resources/private_service_definitions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,gCAAgC;IACvB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;OAIG;IACH,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,gBAAwB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uCAAuC,KAAK,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
@@ -0,0 +1,42 @@
1
+ import { HttpClient } from "../../runtime/http-client.js";
2
+ import type { CreatedPrivateServiceEnrollment, PrivateServiceEnrollment, PrivateServiceEnrollmentPage } from "../../types/common.js";
3
+ export declare class PrivateServiceEnrollmentResource {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ /**
7
+ * List private service enrollments
8
+ * @param params - Query parameters.
9
+ * @param params.org - Organization ID or slug. Required for developer and server callers.
10
+ * @param params.page - Page number. Defaults to 1.
11
+ * @param params.pageSize - Results per page. Defaults to 25; maximum is 100.
12
+ * @returns Successful response
13
+ */
14
+ list(params?: {
15
+ org?: string;
16
+ page?: number;
17
+ pageSize?: number;
18
+ }): Promise<PrivateServiceEnrollmentPage>;
19
+ /**
20
+ * Create a private service enrollment
21
+ * Creates or safely replaces an unreserved one-time connector enrollment token.
22
+ * @param input - Request body.
23
+ * @param input.org - Organization ID or slug. Required for developer and server callers.
24
+ * @param input.private_service - Private service ID (`pvs_...`).
25
+ * @returns Successful response
26
+ */
27
+ create(input: {
28
+ org?: string | undefined;
29
+ private_service: string;
30
+ }): Promise<CreatedPrivateServiceEnrollment>;
31
+ /**
32
+ * Retrieve a private service enrollment
33
+ * @param privateServiceEnrollmentId - Canonical certificate-bound service identity.
34
+ * @param params - Query parameters.
35
+ * @param params.org - Organization ID or slug. Required for developer and server callers.
36
+ * @returns Successful response
37
+ */
38
+ get(privateServiceEnrollmentId: string, params?: {
39
+ org?: string;
40
+ }): Promise<PrivateServiceEnrollment>;
41
+ }
42
+ //# sourceMappingURL=private_service_enrollments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private_service_enrollments.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/private_service_enrollments.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErI,qBAAa,gCAAgC;IAC/B,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;OAOG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAe9G;;;;;;;OAOG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAIpH;;;;;;OAMG;IACG,GAAG,CAAC,0BAA0B,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAQ5G"}
@@ -0,0 +1,56 @@
1
+ // Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
2
+ // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
+ // Content hash: d0e14fba7255
4
+ export class PrivateServiceEnrollmentResource {
5
+ http;
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /**
10
+ * List private service enrollments
11
+ * @param params - Query parameters.
12
+ * @param params.org - Organization ID or slug. Required for developer and server callers.
13
+ * @param params.page - Page number. Defaults to 1.
14
+ * @param params.pageSize - Results per page. Defaults to 25; maximum is 100.
15
+ * @returns Successful response
16
+ */
17
+ async list(params) {
18
+ const query = {};
19
+ if (params?.org !== undefined) {
20
+ query["org"] = params?.org;
21
+ }
22
+ if (params?.page !== undefined) {
23
+ query["page"] = params?.page;
24
+ }
25
+ if (params?.pageSize !== undefined) {
26
+ query["page_size"] = params?.pageSize;
27
+ }
28
+ return this.http.request(`/api/v1/private_service_enrollments`, { query });
29
+ }
30
+ /**
31
+ * Create a private service enrollment
32
+ * Creates or safely replaces an unreserved one-time connector enrollment token.
33
+ * @param input - Request body.
34
+ * @param input.org - Organization ID or slug. Required for developer and server callers.
35
+ * @param input.private_service - Private service ID (`pvs_...`).
36
+ * @returns Successful response
37
+ */
38
+ async create(input) {
39
+ return this.http.request(`/api/v1/private_service_enrollments`, { method: "POST", body: input });
40
+ }
41
+ /**
42
+ * Retrieve a private service enrollment
43
+ * @param privateServiceEnrollmentId - Canonical certificate-bound service identity.
44
+ * @param params - Query parameters.
45
+ * @param params.org - Organization ID or slug. Required for developer and server callers.
46
+ * @returns Successful response
47
+ */
48
+ async get(privateServiceEnrollmentId, params) {
49
+ const query = {};
50
+ if (params?.org !== undefined) {
51
+ query["org"] = params?.org;
52
+ }
53
+ return this.http.request(`/api/v1/private_service_enrollments/${privateServiceEnrollmentId}`, { query });
54
+ }
55
+ }
56
+ //# sourceMappingURL=private_service_enrollments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private_service_enrollments.js","sourceRoot":"","sources":["../../../src/v1/resources/private_service_enrollments.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gCAAgC;IACvB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CAAC,MAA2D;QACpE,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,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