@archastro/sdk 0.9.0 → 0.11.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 (102) 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/types/ai.d.ts +2 -2
  6. package/dist/types/chat.d.ts +111 -50
  7. package/dist/types/chat.d.ts.map +1 -1
  8. package/dist/types/common.d.ts +1096 -468
  9. package/dist/types/common.d.ts.map +1 -1
  10. package/dist/types/common.js +155 -62
  11. package/dist/types/common.js.map +1 -1
  12. package/dist/types/extractions.d.ts +36 -0
  13. package/dist/types/extractions.d.ts.map +1 -1
  14. package/dist/types/index.d.ts +2 -0
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/index.js +3 -1
  17. package/dist/types/index.js.map +1 -1
  18. package/dist/types/status.d.ts +121 -0
  19. package/dist/types/status.d.ts.map +1 -0
  20. package/dist/types/status.js +18 -0
  21. package/dist/types/status.js.map +1 -0
  22. package/dist/types/tasks.d.ts +601 -0
  23. package/dist/types/tasks.d.ts.map +1 -0
  24. package/dist/types/tasks.js +118 -0
  25. package/dist/types/tasks.js.map +1 -0
  26. package/dist/types/threads.d.ts +542 -5
  27. package/dist/types/threads.d.ts.map +1 -1
  28. package/dist/types/threads.js +45 -2
  29. package/dist/types/threads.js.map +1 -1
  30. package/dist/v1/resources/activity_feed.d.ts +1 -1
  31. package/dist/v1/resources/activity_feed.js +2 -2
  32. package/dist/v1/resources/agents.d.ts +2 -2
  33. package/dist/v1/resources/agents.js +3 -3
  34. package/dist/v1/resources/custom_objects.d.ts +86 -20
  35. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  36. package/dist/v1/resources/custom_objects.js +41 -19
  37. package/dist/v1/resources/custom_objects.js.map +1 -1
  38. package/dist/v1/resources/files.d.ts +19 -0
  39. package/dist/v1/resources/files.d.ts.map +1 -1
  40. package/dist/v1/resources/files.js +3 -1
  41. package/dist/v1/resources/files.js.map +1 -1
  42. package/dist/v1/resources/index.d.ts +7 -0
  43. package/dist/v1/resources/index.d.ts.map +1 -1
  44. package/dist/v1/resources/index.js +8 -1
  45. package/dist/v1/resources/index.js.map +1 -1
  46. package/dist/v1/resources/private_service_definitions.d.ts +12 -0
  47. package/dist/v1/resources/private_service_definitions.d.ts.map +1 -0
  48. package/dist/v1/resources/private_service_definitions.js +18 -0
  49. package/dist/v1/resources/private_service_definitions.js.map +1 -0
  50. package/dist/v1/resources/private_service_enrollments.d.ts +42 -0
  51. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -0
  52. package/dist/v1/resources/private_service_enrollments.js +56 -0
  53. package/dist/v1/resources/private_service_enrollments.js.map +1 -0
  54. package/dist/v1/resources/private_services.d.ts +46 -0
  55. package/dist/v1/resources/private_services.d.ts.map +1 -0
  56. package/dist/v1/resources/private_services.js +55 -0
  57. package/dist/v1/resources/private_services.js.map +1 -0
  58. package/dist/v1/resources/sandboxes.d.ts +81 -0
  59. package/dist/v1/resources/sandboxes.d.ts.map +1 -0
  60. package/dist/v1/resources/sandboxes.js +84 -0
  61. package/dist/v1/resources/sandboxes.js.map +1 -0
  62. package/dist/v1/resources/slack_channel_bindings.d.ts +37 -0
  63. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
  64. package/dist/v1/resources/slack_channel_bindings.js +31 -1
  65. package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
  66. package/dist/v1/resources/solutions.d.ts +2 -0
  67. package/dist/v1/resources/solutions.d.ts.map +1 -1
  68. package/dist/v1/resources/solutions.js +2 -1
  69. package/dist/v1/resources/solutions.js.map +1 -1
  70. package/dist/v1/resources/status.d.ts +22 -0
  71. package/dist/v1/resources/status.d.ts.map +1 -0
  72. package/dist/v1/resources/status.js +27 -0
  73. package/dist/v1/resources/status.js.map +1 -0
  74. package/dist/v1/resources/tasks.d.ts +599 -0
  75. package/dist/v1/resources/tasks.d.ts.map +1 -0
  76. package/dist/v1/resources/tasks.js +436 -0
  77. package/dist/v1/resources/tasks.js.map +1 -0
  78. package/dist/v1/resources/teams.d.ts +463 -0
  79. package/dist/v1/resources/teams.d.ts.map +1 -1
  80. package/dist/v1/resources/teams.js +281 -1
  81. package/dist/v1/resources/teams.js.map +1 -1
  82. package/dist/v1/resources/thread_messages.d.ts +25 -3
  83. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  84. package/dist/v1/resources/thread_messages.js +25 -4
  85. package/dist/v1/resources/thread_messages.js.map +1 -1
  86. package/dist/v1/resources/threads.d.ts +40 -0
  87. package/dist/v1/resources/threads.d.ts.map +1 -1
  88. package/dist/v1/resources/threads.js +36 -1
  89. package/dist/v1/resources/threads.js.map +1 -1
  90. package/dist/v1/resources/trajectories.d.ts +34 -0
  91. package/dist/v1/resources/trajectories.d.ts.map +1 -0
  92. package/dist/v1/resources/trajectories.js +41 -0
  93. package/dist/v1/resources/trajectories.js.map +1 -0
  94. package/dist/v1/resources/users.d.ts +353 -0
  95. package/dist/v1/resources/users.d.ts.map +1 -1
  96. package/dist/v1/resources/users.js +208 -1
  97. package/dist/v1/resources/users.js.map +1 -1
  98. package/dist/v1.d.ts +14 -0
  99. package/dist/v1.d.ts.map +1 -1
  100. package/dist/v1.js +22 -1
  101. package/dist/v1.js.map +1 -1
  102. package/package.json +1 -1
@@ -1,8 +1,8 @@
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: 480649ade9a5
3
+ // Content hash: ef0e82f3f5ca
4
4
  import { z } from "zod";
5
- import { agentSchema, messageSchema } from "./common.js";
5
+ import { aclSchema, agentSchema, attachmentSchema, messageSchema } from "./common.js";
6
6
  import { userSchema } from "./users.js";
7
7
  /** Runtime validator for {@link ThreadSettings}. */
8
8
  export const threadSettingsSchema = z.object({
@@ -82,6 +82,49 @@ export const threadSchema = z.object({
82
82
  /** Who can read the thread: `team` for every owning-team member, `restricted` for team-readable threads with an explicit roster, or `private` for roster-only access. */
83
83
  visibility: z.enum(["team", "restricted", "private"]).describe("Who can read the thread: `team` for every owning-team member, `restricted` for team-readable threads with an explicit roster, or `private` for roster-only access."),
84
84
  }).describe("A chat thread, representing a conversation channel that can be owned by a user, team, or agent and may contain messages, participants, and AI agent activity.");
85
+ /** Runtime validator for {@link ThreadMessage}. */
86
+ export const threadMessageSchema = z.object({
87
+ /** Access control list for private messages. Only returned to resource owners (and privileged/org-admin viewers); `null` otherwise. */
88
+ acl: aclSchema.optional().describe("Access control list for private messages. Only returned to resource owners (and privileged/org-admin viewers); `null` otherwise."),
89
+ /** Admin-only diagnostic metadata for the message, including execution trajectory details. Only present in developer portal responses. */
90
+ admin: z.record(z.unknown()).optional().describe("Admin-only diagnostic metadata for the message, including execution trajectory details. Only present in developer portal responses."),
91
+ /** Agent ID (`agt_...`) associated with the message. `null` if not agent-scoped. */
92
+ agent: z.string().optional().describe("Agent ID (`agt_...`) associated with the message. `null` if not agent-scoped."),
93
+ /** Local agent execution mode for this message. One of `cli`, `embedded`, or `null` when the message was not created by a local agent execution path. */
94
+ agent_mode: z.enum(["cli", "embedded"]).optional().describe("Local agent execution mode for this message. One of `cli`, `embedded`, or `null` when the message was not created by a local agent execution path."),
95
+ /** App ID (`app_...`) that the message belongs to. */
96
+ app: z.string().optional().describe("App ID (`app_...`) that the message belongs to."),
97
+ /** Files or media attached to the message. Empty array if no attachments are present. */
98
+ attachments: z.array(attachmentSchema).optional().describe("Files or media attached to the message. Empty array if no attachments are present."),
99
+ /** Text content of the message. `null` if the message contains only attachments. */
100
+ content: z.string().optional().describe("Text content of the message. `null` if the message contains only attachments."),
101
+ /** When the message was posted to the thread (ISO 8601). */
102
+ created_at: z.string().optional().describe("When the message was posted to the thread (ISO 8601)."),
103
+ /** Message ID (`msg_...`). */
104
+ id: z.string().describe("Message ID (`msg_...`)."),
105
+ /** Key-value metadata attached to the message. Always present; defaults to an empty object. The `metadata` query parameter filters on this same object, so a caller can read back the field it selects on. */
106
+ metadata: z.record(z.unknown()).optional().describe("Key-value metadata attached to the message. Always present; defaults to an empty object. The `metadata` query parameter filters on this same object, so a caller can read back the field it selects on."),
107
+ /** Organization ID (`org_...`) this message is scoped to. `null` if not org-scoped. */
108
+ org: z.string().optional().describe("Organization ID (`org_...`) this message is scoped to. `null` if not org-scoped."),
109
+ /** ID of the root message in this reply chain (`msg_...`). `null` for a top-level message. The value is persisted when the reply is created, so callers can correlate a multi-turn session without walking parent messages. */
110
+ root_message_id: z.string().nullable().optional().describe("ID of the root message in this reply chain (`msg_...`). `null` for a top-level message. The value is persisted when the reply is created, so callers can correlate a multi-turn session without walking parent messages."),
111
+ /** Sandbox ID (`dsb_...`) this message is scoped to. `null` if not sandbox-scoped. */
112
+ sandbox: z.string().optional().describe("Sandbox ID (`dsb_...`) this message is scoped to. `null` if not sandbox-scoped."),
113
+ /** Public ID of the sender (e.g. `usr_...` or `agt_...`). `null` for system-generated messages. */
114
+ sender: z.string().optional().describe("Public ID of the sender (e.g. `usr_...` or `agt_...`). `null` for system-generated messages."),
115
+ /** Display name of the message sender. `null` if unavailable. */
116
+ sender_name: z.string().optional().describe("Display name of the message sender. `null` if unavailable."),
117
+ /** Category of entity that sent the message. One of `"user"`, `"agent"`, or `"system"`. */
118
+ sender_type: z.string().optional().describe("Category of entity that sent the message. One of `\"user\"`, `\"agent\"`, or `\"system\"`."),
119
+ /** Team ID (`tea_...`) associated with the message. `null` if not team-scoped. */
120
+ team: z.string().optional().describe("Team ID (`tea_...`) associated with the message. `null` if not team-scoped."),
121
+ /** Optional client-defined classification for the message (for example `note` or `status`). Free-form string up to 64 characters. The value `system` is reserved for platform-authored messages and cannot be set by clients. `null` when unset. */
122
+ type: z.string().optional().describe("Optional client-defined classification for the message (for example `note` or `status`). Free-form string up to 64 characters. The value `system` is reserved for platform-authored messages and cannot be set by clients. `null` when unset."),
123
+ /** User ID (`usr_...`) associated with the message. `null` if not user-scoped. */
124
+ user: z.string().optional().describe("User ID (`usr_...`) associated with the message. `null` if not user-scoped."),
125
+ /** Message-level visibility. `default` follows thread membership; `private` is limited to the sender and ACL `read` grantees. */
126
+ visibility: z.enum(["default", "private"]).optional().describe("Message-level visibility. `default` follows thread membership; `private` is limited to the sender and ACL `read` grantees."),
127
+ }).describe("A single message posted to a thread, as seen from the developer portal. Includes sender information, optional attachments, and scoping identifiers.");
85
128
  /** Runtime validator for {@link ThreadReadStatus}. */
86
129
  export const threadReadStatusSchema = z.object({
87
130
  /** Message ID (`msg_...`) of the last message the user has read in this thread. `null` if the user has never read any message in the thread. */
@@ -1 +1 @@
1
- {"version":3,"file":"threads.js","sourceRoot":"","sources":["../../src/types/threads.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAUxC,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,gLAAgL;IAChL,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2KAA2K,CAAC;CAC5N,CAAC,CAAC,QAAQ,CAAC,wGAAwG,CAAqC,CAAC;AA4E1J,4CAA4C;AAC5C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,sGAAsG;IACtG,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iGAAiG,CAAC;IAC7I,8CAA8C;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACrF,2KAA2K;I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,EAAE,CAAC,QAAQ,CAAC,2IAA2I,CAAC;IAC9L,8DAA8D;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;IACtF,uEAAuE;IACvE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,kEAAkE,CAAC;CAC5G,CAAC,CAAC,QAAQ,CAAC,yHAAyH,CAAuC,CAAC"}
@@ -13,7 +13,7 @@ export declare class ActivityFeedResource {
13
13
  * Invalid `kind` or `level` values return a 400 error listing the accepted
14
14
  * values rather than being silently ignored.
15
15
  * @param params - Query parameters.
16
- * @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.
16
+ * @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.
17
17
  * @param params.level - One or more severity levels to include. Accepted values: debug, info, warn, error, audit. Omit to return all levels.
18
18
  * @param params.agent - Restrict results to entries associated with these agent IDs (`agt_...`). Accepts multiple values.
19
19
  * @param params.thread - Restrict results to entries associated with these thread IDs (`thr_...`). Accepts multiple values.
@@ -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.
@@ -335,7 +335,7 @@ export declare class AgentWorkItemResource {
335
335
  * the agent-nested collection limits results to that agent. This discovery
336
336
  * response never includes lease tokens. Use the agent claim endpoint to acquire
337
337
  * new work or resume a saved lease.
338
- * @param agent - Agent ID or lookup key.
338
+ * @param agent - Agent ID or lookup key injected by the nested route.
339
339
  * @param params - Query parameters.
340
340
  * @param params.execution - Optional durable execution ID filter.
341
341
  * @param params.limit - Maximum work items per page. Defaults to 50; maximum is 100.
@@ -354,7 +354,7 @@ export declare class AgentWorkItemResource {
354
354
  * the server refreshes that active lease without incrementing its attempt.
355
355
  * Returns `data: null` when no eligible item exists, including when another
356
356
  * lease owns the explicitly requested item.
357
- * @param agent - Agent ID or lookup key.
357
+ * @param agent - Agent ID or lookup key injected by the nested route.
358
358
  * @param input - Request body.
359
359
  * @param input.execution - Optional durable execution ID filter.
360
360
  * @param input.lease_owner - Caller-generated random UUID lease token.
@@ -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: 9ad87f4fbb55
3
+ // Content hash: 2aaab7ff10f5
4
4
  export class AgentAgentComputerResource {
5
5
  http;
6
6
  constructor(http) {
@@ -327,7 +327,7 @@ export class AgentWorkItemResource {
327
327
  * the agent-nested collection limits results to that agent. This discovery
328
328
  * response never includes lease tokens. Use the agent claim endpoint to acquire
329
329
  * new work or resume a saved lease.
330
- * @param agent - Agent ID or lookup key.
330
+ * @param agent - Agent ID or lookup key injected by the nested route.
331
331
  * @param params - Query parameters.
332
332
  * @param params.execution - Optional durable execution ID filter.
333
333
  * @param params.limit - Maximum work items per page. Defaults to 50; maximum is 100.
@@ -354,7 +354,7 @@ export class AgentWorkItemResource {
354
354
  * the server refreshes that active lease without incrementing its attempt.
355
355
  * Returns `data: null` when no eligible item exists, including when another
356
356
  * lease owns the explicitly requested item.
357
- * @param agent - Agent ID or lookup key.
357
+ * @param agent - Agent ID or lookup key injected by the nested route.
358
358
  * @param input - Request body.
359
359
  * @param input.execution - Optional durable execution ID filter.
360
360
  * @param input.lease_owner - Caller-generated random UUID lease token.
@@ -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
@@ -57,23 +68,44 @@ export declare class CustomObjectResource {
57
68
  * receiving a 409 Conflict. The response status is `200` on an update and
58
69
  * `201` on a new create.
59
70
  * @param input - Request body.
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.
60
72
  * @param input.agent - Agent user ID to set as the object owner. Used when neither `team` nor `user` is supplied.
61
- * @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.
62
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`.
63
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.
64
78
  * @param input.team - Team ID (`team_...`) to set as the object owner. When supplied, takes priority over `user` and `agent`.
65
- * @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.
66
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.
67
81
  * @param input.user - User ID (`user_...`) to set as the object owner. Used when neither `team` nor a higher-priority owner is set.
68
82
  * @returns The created (or upserted) custom object.
69
83
  */
70
84
  create(input: {
85
+ acl?: {
86
+ add?: {
87
+ actions: string[];
88
+ principal?: string | undefined;
89
+ principal_type: string;
90
+ }[] | undefined;
91
+ grants?: {
92
+ actions: string[];
93
+ principal?: string | undefined;
94
+ principal_type: string;
95
+ }[] | undefined;
96
+ remove?: {
97
+ principal?: string | undefined;
98
+ principal_type: string;
99
+ }[] | undefined;
100
+ } | undefined;
71
101
  agent?: string | undefined;
72
- fields: Record<string, unknown>;
102
+ config?: string | undefined;
103
+ fields?: Record<string, unknown> | undefined;
73
104
  org?: string | undefined;
105
+ schema_key?: string | undefined;
74
106
  system?: boolean | undefined;
75
107
  team?: string | undefined;
76
- type: string;
108
+ type?: string | undefined;
77
109
  upsert?: boolean | undefined;
78
110
  user?: string | undefined;
79
111
  }): Promise<CustomObject>;
@@ -112,22 +144,56 @@ export declare class CustomObjectResource {
112
144
  * object along with its new version number. The authenticated viewer must have
113
145
  * permission to modify the object.
114
146
  * You may supply `fields` (a full or partial key-value map to merge into the
115
- * object), `field_ops` (granular array operations per field), or both — but
116
- * the same field name must not appear in both, which returns 422. Returns 404
117
- * if the object does not exist or has been deleted.
147
+ * object), `field_ops` (granular array operations per field), `acl`, or any
148
+ * compatible combination. The same field name must not appear in both
149
+ * `fields` and `field_ops`, which returns 422. Returns 404 if the object does
150
+ * not exist or has been deleted.
118
151
  * @param object - Custom object ID (`cobj_...`) to update.
119
152
  * @param input - Request body.
153
+ * @param input.acl - Updated access control list. Supports full replacement via `grants` or targeted `add`/`remove` operations.
120
154
  * @param input.field_ops - Granular array operations to apply per field (e.g. append, prepend, remove). A field must not appear in both `fields` and `field_ops`.
121
155
  * @param input.fields - Key-value map of field values to merge into the object. Only the supplied keys are affected.
122
156
  * @param input.type - Schema type identifier (`lookup_key`) of the object. Optional; used for routing context only.
123
157
  * @returns Successful response
124
158
  */
125
159
  replace(object: string, input: {
160
+ acl?: {
161
+ add?: {
162
+ actions: string[];
163
+ principal?: string | undefined;
164
+ principal_type: string;
165
+ }[] | undefined;
166
+ grants?: {
167
+ actions: string[];
168
+ principal?: string | undefined;
169
+ principal_type: string;
170
+ }[] | undefined;
171
+ remove?: {
172
+ principal?: string | undefined;
173
+ principal_type: string;
174
+ }[] | undefined;
175
+ } | undefined;
126
176
  field_ops?: Record<string, unknown> | undefined;
127
- fields: Record<string, unknown>;
177
+ fields?: Record<string, unknown> | undefined;
128
178
  type?: string | undefined;
129
179
  }): Promise<{
130
180
  data: {
181
+ acl?: {
182
+ add?: {
183
+ actions: string[];
184
+ principal?: string | undefined;
185
+ principal_type: string;
186
+ }[] | undefined;
187
+ grants?: {
188
+ actions: string[];
189
+ principal?: string | undefined;
190
+ principal_type: string;
191
+ }[] | undefined;
192
+ remove?: {
193
+ principal?: string | undefined;
194
+ principal_type: string;
195
+ }[] | undefined;
196
+ } | undefined;
131
197
  created_at?: string | undefined;
132
198
  fields?: Record<string, unknown> | undefined;
133
199
  id: string;
@@ -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,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KA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AAA;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: 94bbc02436c2
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
@@ -80,12 +97,15 @@ export class CustomObjectResource {
80
97
  * receiving a 409 Conflict. The response status is `200` on an update and
81
98
  * `201` on a new create.
82
99
  * @param input - Request body.
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.
83
101
  * @param input.agent - Agent user ID to set as the object owner. Used when neither `team` nor `user` is supplied.
84
- * @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.
85
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`.
86
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.
87
107
  * @param input.team - Team ID (`team_...`) to set as the object owner. When supplied, takes priority over `user` and `agent`.
88
- * @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.
89
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.
90
110
  * @param input.user - User ID (`user_...`) to set as the object owner. Used when neither `team` nor a higher-priority owner is set.
91
111
  * @returns The created (or upserted) custom object.
@@ -131,11 +151,13 @@ export class CustomObjectResource {
131
151
  * object along with its new version number. The authenticated viewer must have
132
152
  * permission to modify the object.
133
153
  * You may supply `fields` (a full or partial key-value map to merge into the
134
- * object), `field_ops` (granular array operations per field), or both — but
135
- * the same field name must not appear in both, which returns 422. Returns 404
136
- * if the object does not exist or has been deleted.
154
+ * object), `field_ops` (granular array operations per field), `acl`, or any
155
+ * compatible combination. The same field name must not appear in both
156
+ * `fields` and `field_ops`, which returns 422. Returns 404 if the object does
157
+ * not exist or has been deleted.
137
158
  * @param object - Custom object ID (`cobj_...`) to update.
138
159
  * @param input - Request body.
160
+ * @param input.acl - Updated access control list. Supports full replacement via `grants` or targeted `add`/`remove` operations.
139
161
  * @param input.field_ops - Granular array operations to apply per field (e.g. append, prepend, remove). A field must not appear in both `fields` and `field_ops`.
140
162
  * @param input.fields - Key-value map of field values to merge into the object. Only the supplied keys are affected.
141
163
  * @param input.type - Schema type identifier (`lookup_key`) of the object. Optional; used for routing context only.
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,KAAK,CAAC,IAAI,CAAC,MAAqL;QAC9L,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC7B,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,SAAS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;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,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAIvH;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,E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M,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,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,CAA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