@camstack/types 1.2.588 → 1.2.589

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.
package/dist/node.js CHANGED
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
25
- const require_implemented_methods = require("./implemented-methods-ChtdIofW.js");
24
+ const require_composed_stable_id = require("./composed-stable-id-DDv-Og0u.js");
25
+ const require_implemented_methods = require("./implemented-methods-CbdShcW1.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
28
28
  node_fs = __toESM(node_fs);
package/dist/node.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { s as errMsg } from "./composed-stable-id-BBL71oUQ.mjs";
2
- import { a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegDownloadUrl, er as FFMPEG_PATH_ENV, fr as buildFfmpegArgs, gr as isSoftwareDecode, ir as getFfmpegArtifact, nr as ffmpegBinaryName, or as canonicalHash, rr as FFMPEG_RELEASE, sr as Fmp4BoxSplitter, t as implementedMethodsOf, tr as chooseFfmpegBinary, z as compositionSourceKey } from "./implemented-methods-u7ddjc-_.mjs";
1
+ import { s as errMsg } from "./composed-stable-id-Kt5VKzGZ.mjs";
2
+ import { a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegDownloadUrl, er as FFMPEG_PATH_ENV, fr as buildFfmpegArgs, gr as isSoftwareDecode, ir as getFfmpegArtifact, nr as ffmpegBinaryName, or as canonicalHash, rr as FFMPEG_RELEASE, sr as Fmp4BoxSplitter, t as implementedMethodsOf, tr as chooseFfmpegBinary, z as compositionSourceKey } from "./implemented-methods-BiV3Y-40.mjs";
3
3
  import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
4
4
  import * as fs from "node:fs";
5
5
  import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
@@ -0,0 +1,170 @@
1
+ /**
2
+ * The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
3
+ *
4
+ * One entry per tRPC method the hub serves, capability and core routes alike,
5
+ * read off the live router by the hub (never a hand-written list).
6
+ */
7
+ import { z } from 'zod';
8
+ export declare const ApiProcedureKindSchema: z.ZodEnum<{
9
+ mutation: "mutation";
10
+ query: "query";
11
+ subscription: "subscription";
12
+ }>;
13
+ export type ApiProcedureKind = z.infer<typeof ApiProcedureKindSchema>;
14
+ /** The gate a method runs behind. */
15
+ export declare const ApiProcedureTierSchema: z.ZodEnum<{
16
+ admin: "admin";
17
+ protected: "protected";
18
+ public: "public";
19
+ }>;
20
+ export type ApiProcedureTier = z.infer<typeof ApiProcedureTierSchema>;
21
+ /** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
22
+ export declare const ApiCatalogScopeSchema: z.ZodObject<{
23
+ capName: z.ZodString;
24
+ capScope: z.ZodEnum<{
25
+ device: "device";
26
+ system: "system";
27
+ }>;
28
+ access: z.ZodEnum<{
29
+ create: "create";
30
+ delete: "delete";
31
+ view: "view";
32
+ }>;
33
+ role: z.ZodString;
34
+ }, z.core.$strip>;
35
+ export type ApiCatalogScope = z.infer<typeof ApiCatalogScopeSchema>;
36
+ export declare const ApiCatalogEntrySchema: z.ZodObject<{
37
+ path: z.ZodString;
38
+ router: z.ZodString;
39
+ method: z.ZodString;
40
+ kind: z.ZodEnum<{
41
+ mutation: "mutation";
42
+ query: "query";
43
+ subscription: "subscription";
44
+ }>;
45
+ tier: z.ZodEnum<{
46
+ admin: "admin";
47
+ protected: "protected";
48
+ public: "public";
49
+ }>;
50
+ source: z.ZodEnum<{
51
+ capability: "capability";
52
+ core: "core";
53
+ }>;
54
+ scope: z.ZodNullable<z.ZodObject<{
55
+ capName: z.ZodString;
56
+ capScope: z.ZodEnum<{
57
+ device: "device";
58
+ system: "system";
59
+ }>;
60
+ access: z.ZodEnum<{
61
+ create: "create";
62
+ delete: "delete";
63
+ view: "view";
64
+ }>;
65
+ role: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ hasInput: z.ZodBoolean;
68
+ }, z.core.$strip>;
69
+ export type ApiCatalogEntry = z.infer<typeof ApiCatalogEntrySchema>;
70
+ /**
71
+ * May the CALLER call a method. The list has no input, so a method reached
72
+ * only through a device grant is `per-device`: the real call is allowed or
73
+ * refused on the device its input names.
74
+ */
75
+ export declare const ApiCallableSchema: z.ZodEnum<{
76
+ no: "no";
77
+ "per-device": "per-device";
78
+ yes: "yes";
79
+ }>;
80
+ export type ApiCallable = z.infer<typeof ApiCallableSchema>;
81
+ export declare const ApiCatalogMethodSchema: z.ZodObject<{
82
+ path: z.ZodString;
83
+ router: z.ZodString;
84
+ method: z.ZodString;
85
+ kind: z.ZodEnum<{
86
+ mutation: "mutation";
87
+ query: "query";
88
+ subscription: "subscription";
89
+ }>;
90
+ tier: z.ZodEnum<{
91
+ admin: "admin";
92
+ protected: "protected";
93
+ public: "public";
94
+ }>;
95
+ source: z.ZodEnum<{
96
+ capability: "capability";
97
+ core: "core";
98
+ }>;
99
+ scope: z.ZodNullable<z.ZodObject<{
100
+ capName: z.ZodString;
101
+ capScope: z.ZodEnum<{
102
+ device: "device";
103
+ system: "system";
104
+ }>;
105
+ access: z.ZodEnum<{
106
+ create: "create";
107
+ delete: "delete";
108
+ view: "view";
109
+ }>;
110
+ role: z.ZodString;
111
+ }, z.core.$strip>>;
112
+ hasInput: z.ZodBoolean;
113
+ callable: z.ZodEnum<{
114
+ no: "no";
115
+ "per-device": "per-device";
116
+ yes: "yes";
117
+ }>;
118
+ }, z.core.$strip>;
119
+ export type ApiCatalogMethod = z.infer<typeof ApiCatalogMethodSchema>;
120
+ export declare const ApiCatalogListOutputSchema: z.ZodObject<{
121
+ methods: z.ZodArray<z.ZodObject<{
122
+ path: z.ZodString;
123
+ router: z.ZodString;
124
+ method: z.ZodString;
125
+ kind: z.ZodEnum<{
126
+ mutation: "mutation";
127
+ query: "query";
128
+ subscription: "subscription";
129
+ }>;
130
+ tier: z.ZodEnum<{
131
+ admin: "admin";
132
+ protected: "protected";
133
+ public: "public";
134
+ }>;
135
+ source: z.ZodEnum<{
136
+ capability: "capability";
137
+ core: "core";
138
+ }>;
139
+ scope: z.ZodNullable<z.ZodObject<{
140
+ capName: z.ZodString;
141
+ capScope: z.ZodEnum<{
142
+ device: "device";
143
+ system: "system";
144
+ }>;
145
+ access: z.ZodEnum<{
146
+ create: "create";
147
+ delete: "delete";
148
+ view: "view";
149
+ }>;
150
+ role: z.ZodString;
151
+ }, z.core.$strip>>;
152
+ hasInput: z.ZodBoolean;
153
+ callable: z.ZodEnum<{
154
+ no: "no";
155
+ "per-device": "per-device";
156
+ yes: "yes";
157
+ }>;
158
+ }, z.core.$strip>>;
159
+ }, z.core.$strip>;
160
+ export type ApiCatalogListOutput = z.infer<typeof ApiCatalogListOutputSchema>;
161
+ /** A JSON Schema document, as the explorer receives it. */
162
+ export declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
163
+ export type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
164
+ export declare const ApiCatalogInputSchemaOutputSchema: z.ZodObject<{
165
+ path: z.ZodString;
166
+ hasInput: z.ZodBoolean;
167
+ schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ error: z.ZodNullable<z.ZodString>;
169
+ }, z.core.$strip>;
170
+ export type ApiCatalogInputSchemaOutput = z.infer<typeof ApiCatalogInputSchemaOutputSchema>;
@@ -1,5 +1,5 @@
1
1
  import { t as EventCategory } from "./event-category-Hwx_JSCU.mjs";
2
- import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-BBL71oUQ.mjs";
2
+ import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-Kt5VKzGZ.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -18333,7 +18333,7 @@ var CAP_STATE_LEAVES = Object.freeze({
18333
18333
  ]
18334
18334
  },
18335
18335
  {
18336
- "path": "requiresCode",
18336
+ "path": "codeRequired",
18337
18337
  "valueType": "boolean"
18338
18338
  }
18339
18339
  ],
@@ -19401,6 +19401,9 @@ var CAP_STATE_LEAVES = Object.freeze({
19401
19401
  "jammed",
19402
19402
  "door-open"
19403
19403
  ]
19404
+ }, {
19405
+ "path": "codeRequired",
19406
+ "valueType": "boolean"
19404
19407
  }],
19405
19408
  "media-player": [
19406
19409
  {
@@ -1,5 +1,5 @@
1
1
  const require_event_category = require("./event-category-CE_VCE2G.js");
2
- const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
2
+ const require_composed_stable_id = require("./composed-stable-id-DDv-Og0u.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -18333,7 +18333,7 @@ var CAP_STATE_LEAVES = Object.freeze({
18333
18333
  ]
18334
18334
  },
18335
18335
  {
18336
- "path": "requiresCode",
18336
+ "path": "codeRequired",
18337
18337
  "valueType": "boolean"
18338
18338
  }
18339
18339
  ],
@@ -19401,6 +19401,9 @@ var CAP_STATE_LEAVES = Object.freeze({
19401
19401
  "jammed",
19402
19402
  "door-open"
19403
19403
  ]
19404
+ }, {
19405
+ "path": "codeRequired",
19406
+ "valueType": "boolean"
19404
19407
  }],
19405
19408
  "media-player": [
19406
19409
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.588",
3
+ "version": "1.2.589",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",