@archastro/sdk 0.12.0 → 0.13.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 (43) hide show
  1. package/dist/auth.d.ts +6 -3
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +13 -4
  4. package/dist/auth.js.map +1 -1
  5. package/dist/types/chat.d.ts +322 -228
  6. package/dist/types/chat.d.ts.map +1 -1
  7. package/dist/types/common.d.ts +140 -122
  8. package/dist/types/common.d.ts.map +1 -1
  9. package/dist/types/common.js +2 -2
  10. package/dist/types/common.js.map +1 -1
  11. package/dist/types/index.d.ts +1 -0
  12. package/dist/types/index.d.ts.map +1 -1
  13. package/dist/types/index.js +2 -1
  14. package/dist/types/index.js.map +1 -1
  15. package/dist/types/oauth.d.ts +5 -0
  16. package/dist/types/oauth.d.ts.map +1 -1
  17. package/dist/types/status.d.ts +5 -0
  18. package/dist/types/status.d.ts.map +1 -1
  19. package/dist/types/system.d.ts +58 -0
  20. package/dist/types/system.d.ts.map +1 -0
  21. package/dist/types/system.js +24 -0
  22. package/dist/types/system.js.map +1 -0
  23. package/dist/types/teams.d.ts +48 -36
  24. package/dist/types/teams.d.ts.map +1 -1
  25. package/dist/types/threads.d.ts +27 -16
  26. package/dist/types/threads.d.ts.map +1 -1
  27. package/dist/types/threads.js +2 -2
  28. package/dist/types/threads.js.map +1 -1
  29. package/dist/types/users.d.ts +6 -0
  30. package/dist/types/users.d.ts.map +1 -1
  31. package/dist/types/users.js +3 -1
  32. package/dist/types/users.js.map +1 -1
  33. package/dist/v1/resources/activity_feed.d.ts +1 -0
  34. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  35. package/dist/v1/resources/activity_feed.js +1 -1
  36. package/dist/v1/resources/teams.d.ts +3 -0
  37. package/dist/v1/resources/teams.d.ts.map +1 -1
  38. package/dist/v1/resources/teams.js +1 -1
  39. package/dist/v1/resources/users.d.ts +70 -0
  40. package/dist/v1/resources/users.d.ts.map +1 -1
  41. package/dist/v1/resources/users.js +62 -1
  42. package/dist/v1/resources/users.js.map +1 -1
  43. package/package.json +1 -1
@@ -42,6 +42,7 @@ export declare const statusPingSchema: z.ZodObject<{
42
42
  org: z.ZodOptional<z.ZodString>;
43
43
  org_name: z.ZodOptional<z.ZodString>;
44
44
  org_role: z.ZodOptional<z.ZodString>;
45
+ org_slug: z.ZodOptional<z.ZodString>;
45
46
  sandbox: z.ZodOptional<z.ZodString>;
46
47
  sandbox_name: z.ZodOptional<z.ZodString>;
47
48
  }, "strip", z.ZodTypeAny, {
@@ -57,6 +58,7 @@ export declare const statusPingSchema: z.ZodObject<{
57
58
  metadata?: Record<string, unknown> | undefined;
58
59
  org_name?: string | undefined;
59
60
  org_role?: string | undefined;
61
+ org_slug?: string | undefined;
60
62
  sandbox_name?: string | undefined;
61
63
  }, {
62
64
  id: string;
@@ -71,6 +73,7 @@ export declare const statusPingSchema: z.ZodObject<{
71
73
  metadata?: Record<string, unknown> | undefined;
72
74
  org_name?: string | undefined;
73
75
  org_role?: string | undefined;
76
+ org_slug?: string | undefined;
74
77
  sandbox_name?: string | undefined;
75
78
  }>>;
76
79
  }, "strip", z.ZodTypeAny, {
@@ -89,6 +92,7 @@ export declare const statusPingSchema: z.ZodObject<{
89
92
  metadata?: Record<string, unknown> | undefined;
90
93
  org_name?: string | undefined;
91
94
  org_role?: string | undefined;
95
+ org_slug?: string | undefined;
92
96
  sandbox_name?: string | undefined;
93
97
  } | undefined;
94
98
  deployment?: {
@@ -111,6 +115,7 @@ export declare const statusPingSchema: z.ZodObject<{
111
115
  metadata?: Record<string, unknown> | undefined;
112
116
  org_name?: string | undefined;
113
117
  org_role?: string | undefined;
118
+ org_slug?: string | undefined;
114
119
  sandbox_name?: string | undefined;
115
120
  } | undefined;
116
121
  deployment?: {
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/types/status.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,E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A2B;;;;;;;;;;;IAE3B,wFAAwF;;IAExF,mEAAmE;;IAEnE,oGAAoG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEkD,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ /** A long-lived API credential associated with a system account, used to authenticate server-to-server requests. */
3
+ export interface SystemAccessToken {
4
+ /** When this token was created (ISO 8601). */
5
+ created_at?: string | undefined;
6
+ /** When the token expires. `null` on legacy rows that predate stored expiry. */
7
+ expires_at?: string | undefined;
8
+ /** Token ID (`sat_...`). */
9
+ id: string;
10
+ /** When this token was last used to authenticate a request. `null` if the token has never been used. */
11
+ last_used_at?: string | undefined;
12
+ /** Human-readable label assigned to this token at creation time. */
13
+ name?: string | undefined;
14
+ /** When this token was revoked. `null` if the token is still active. */
15
+ revoked_at?: string | undefined;
16
+ /** Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`. */
17
+ scopes?: string | undefined;
18
+ /** Raw bearer token string. Present only in the response to the create request; never returned again after that. */
19
+ token?: string | undefined;
20
+ }
21
+ /** Runtime validator for {@link SystemAccessToken}. */
22
+ export declare const systemAccessTokenSchema: z.ZodObject<{
23
+ /** When this token was created (ISO 8601). */
24
+ created_at: z.ZodOptional<z.ZodString>;
25
+ /** When the token expires. `null` on legacy rows that predate stored expiry. */
26
+ expires_at: z.ZodOptional<z.ZodString>;
27
+ /** Token ID (`sat_...`). */
28
+ id: z.ZodString;
29
+ /** When this token was last used to authenticate a request. `null` if the token has never been used. */
30
+ last_used_at: z.ZodOptional<z.ZodString>;
31
+ /** Human-readable label assigned to this token at creation time. */
32
+ name: z.ZodOptional<z.ZodString>;
33
+ /** When this token was revoked. `null` if the token is still active. */
34
+ revoked_at: z.ZodOptional<z.ZodString>;
35
+ /** Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`. */
36
+ scopes: z.ZodOptional<z.ZodString>;
37
+ /** Raw bearer token string. Present only in the response to the create request; never returned again after that. */
38
+ token: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ id: string;
41
+ token?: string | undefined;
42
+ name?: string | undefined;
43
+ created_at?: string | undefined;
44
+ expires_at?: string | undefined;
45
+ last_used_at?: string | undefined;
46
+ scopes?: string | undefined;
47
+ revoked_at?: string | undefined;
48
+ }, {
49
+ id: string;
50
+ token?: string | undefined;
51
+ name?: string | undefined;
52
+ created_at?: string | undefined;
53
+ expires_at?: string | undefined;
54
+ last_used_at?: string | undefined;
55
+ scopes?: string | undefined;
56
+ revoked_at?: string | undefined;
57
+ }>;
58
+ //# sourceMappingURL=system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/types/system.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oHAAoH;AACpH,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,wGAAwG;IACxG,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,wGAAwG;IACxG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,oHAAoH;IACpH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,uDAAuD;AACvD,eAAO,MAAM,uBAAuB;IAClC,8CAA8C;;IAE9C,gFAAgF;;IAEhF,4BAA4B;;IAE5B,wGAAwG;;IAExG,oEAAoE;;IAEpE,wEAAwE;;IAExE,wGAAwG;;IAExG,oHAAoH;;;;;;;;;;;;;;;;;;;;EAE6C,CAAC"}
@@ -0,0 +1,24 @@
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: 12dcacbd0afe
4
+ import { z } from "zod";
5
+ /** Runtime validator for {@link SystemAccessToken}. */
6
+ export const systemAccessTokenSchema = z.object({
7
+ /** When this token was created (ISO 8601). */
8
+ created_at: z.string().optional().describe("When this token was created (ISO 8601)."),
9
+ /** When the token expires. `null` on legacy rows that predate stored expiry. */
10
+ expires_at: z.string().optional().describe("When the token expires. `null` on legacy rows that predate stored expiry."),
11
+ /** Token ID (`sat_...`). */
12
+ id: z.string().describe("Token ID (`sat_...`)."),
13
+ /** When this token was last used to authenticate a request. `null` if the token has never been used. */
14
+ last_used_at: z.string().optional().describe("When this token was last used to authenticate a request. `null` if the token has never been used."),
15
+ /** Human-readable label assigned to this token at creation time. */
16
+ name: z.string().optional().describe("Human-readable label assigned to this token at creation time."),
17
+ /** When this token was revoked. `null` if the token is still active. */
18
+ revoked_at: z.string().optional().describe("When this token was revoked. `null` if the token is still active."),
19
+ /** Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`. */
20
+ scopes: z.string().optional().describe("Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`."),
21
+ /** Raw bearer token string. Present only in the response to the create request; never returned again after that. */
22
+ token: z.string().optional().describe("Raw bearer token string. Present only in the response to the create request; never returned again after that."),
23
+ }).describe("A long-lived API credential associated with a system account, used to authenticate server-to-server requests.");
24
+ //# sourceMappingURL=system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/types/system.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,uDAAuD;AACvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,8CAA8C;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACrF,gFAAgF;IAChF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2EAA2E,CAAC;IACvH,4BAA4B;IAC5B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAChD,wGAAwG;IACxG,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mGAAmG,CAAC;IACjJ,oEAAoE;IACpE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;IACrG,wEAAwE;IACxE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mEAAmE,CAAC;IAC/G,wGAAwG;IACxG,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mGAAmG,CAAC;IAC3I,oHAAoH;IACpH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+GAA+G,CAAC;CACvJ,CAAC,CAAC,QAAQ,CAAC,+GAA+G,CAAwC,CAAC"}