@arcforges/api-client 1.0.0-ci.31.1 → 1.0.0-ci.311.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 (100) hide show
  1. package/NOTICE +57 -5
  2. package/README.md +9 -2
  3. package/build-identity.json +270 -0
  4. package/contracts.binpb +0 -0
  5. package/dist/gen/http.d.ts +31 -0
  6. package/dist/gen/http.js +34 -0
  7. package/dist/index.d.ts +10 -1
  8. package/dist/index.js +20 -2
  9. package/dist/shapes/gen/AndroidUpdate.d.ts +41 -0
  10. package/dist/shapes/gen/AndroidUpdate.js +620 -0
  11. package/dist/shapes/gen/BrowserAuthChallenge.d.ts +35 -0
  12. package/dist/shapes/gen/BrowserAuthChallenge.js +531 -0
  13. package/dist/shapes/gen/BrowserBeginAuthenticationRequest.d.ts +28 -0
  14. package/dist/shapes/gen/BrowserBeginAuthenticationRequest.js +384 -0
  15. package/dist/shapes/gen/BrowserBeginRecoveryRequest.d.ts +22 -0
  16. package/dist/shapes/gen/BrowserBeginRecoveryRequest.js +370 -0
  17. package/dist/shapes/gen/BrowserBeginStepUpRequest.d.ts +20 -0
  18. package/dist/shapes/gen/BrowserBeginStepUpRequest.js +279 -0
  19. package/dist/shapes/gen/BrowserBootstrapResponse.d.ts +37 -0
  20. package/dist/shapes/gen/BrowserBootstrapResponse.js +534 -0
  21. package/dist/shapes/gen/BrowserCompleteAuthenticationRequest.d.ts +45 -0
  22. package/dist/shapes/gen/BrowserCompleteAuthenticationRequest.js +564 -0
  23. package/dist/shapes/gen/BrowserCompleteEnrollmentRequest.d.ts +90 -0
  24. package/dist/shapes/gen/BrowserCompleteEnrollmentRequest.js +1145 -0
  25. package/dist/shapes/gen/BrowserCompleteRecoveryRequest.d.ts +22 -0
  26. package/dist/shapes/gen/BrowserCompleteRecoveryRequest.js +733 -0
  27. package/dist/shapes/gen/BrowserCompleteStepUpRequest.d.ts +20 -0
  28. package/dist/shapes/gen/BrowserCompleteStepUpRequest.js +564 -0
  29. package/dist/shapes/gen/BrowserOidcCallbackFailure.d.ts +20 -0
  30. package/dist/shapes/gen/BrowserOidcCallbackFailure.js +200 -0
  31. package/dist/shapes/gen/BrowserOidcCallbackSuccess.d.ts +19 -0
  32. package/dist/shapes/gen/BrowserOidcCallbackSuccess.js +185 -0
  33. package/dist/shapes/gen/BrowserReceipt.d.ts +20 -0
  34. package/dist/shapes/gen/BrowserReceipt.js +285 -0
  35. package/dist/shapes/gen/BrowserSessionRoutes.d.ts +17 -0
  36. package/dist/shapes/gen/BrowserSessionRoutes.js +13 -0
  37. package/dist/shapes/gen/BrowserSessionView.d.ts +25 -0
  38. package/dist/shapes/gen/BrowserSessionView.js +388 -0
  39. package/dist/shapes/gen/BrowserStepUpEvidence.d.ts +19 -0
  40. package/dist/shapes/gen/BrowserStepUpEvidence.js +266 -0
  41. package/dist/shapes/gen/CatalogIndex.d.ts +49 -0
  42. package/dist/shapes/gen/CatalogIndex.js +703 -0
  43. package/dist/shapes/gen/CatalogRevocations.d.ts +46 -0
  44. package/dist/shapes/gen/CatalogRevocations.js +647 -0
  45. package/dist/shapes/gen/DeclarativePanel.d.ts +154 -0
  46. package/dist/shapes/gen/DeclarativePanel.js +2988 -0
  47. package/dist/shapes/gen/ExtensionManifest.d.ts +278 -0
  48. package/dist/shapes/gen/ExtensionManifest.js +3974 -0
  49. package/dist/shapes/gen/ExtensionWorkflow.d.ts +151 -0
  50. package/dist/shapes/gen/ExtensionWorkflow.js +2251 -0
  51. package/dist/shapes/gen/NativeAuthRoutes.d.ts +17 -0
  52. package/dist/shapes/gen/NativeAuthRoutes.js +5 -0
  53. package/dist/shapes/gen/NativeAuthorizeCallbackFailure.d.ts +19 -0
  54. package/dist/shapes/gen/NativeAuthorizeCallbackFailure.js +185 -0
  55. package/dist/shapes/gen/NativeAuthorizeCallbackSuccess.d.ts +19 -0
  56. package/dist/shapes/gen/NativeAuthorizeCallbackSuccess.js +185 -0
  57. package/dist/shapes/gen/NativeAuthorizeRequest.d.ts +24 -0
  58. package/dist/shapes/gen/NativeAuthorizeRequest.js +271 -0
  59. package/dist/shapes/gen/NativeTokenRequest.d.ts +23 -0
  60. package/dist/shapes/gen/NativeTokenRequest.js +258 -0
  61. package/dist/shapes/gen/NativeTokenResponse.d.ts +40 -0
  62. package/dist/shapes/gen/NativeTokenResponse.js +572 -0
  63. package/dist/shapes/gen/PackageInventory.d.ts +24 -0
  64. package/dist/shapes/gen/PackageInventory.js +327 -0
  65. package/dist/shapes/gen/PartReceipt.d.ts +21 -0
  66. package/dist/shapes/gen/PartReceipt.js +290 -0
  67. package/dist/shapes/gen/PolicyBody.d.ts +269 -0
  68. package/dist/shapes/gen/PolicyBody.js +4188 -0
  69. package/dist/shapes/gen/RealmDescriptor.d.ts +39 -0
  70. package/dist/shapes/gen/RealmDescriptor.js +627 -0
  71. package/package.json +15 -7
  72. package/sbom.cdx.json +17 -17
  73. package/schemas/public/http/v1/browser.schema.json +1300 -0
  74. package/schemas/public/http/v1/inventory.schema.json +49 -0
  75. package/schemas/public/http/v1/manifest.schema.json +1459 -0
  76. package/schemas/public/http/v1/native-auth.schema.json +341 -0
  77. package/schemas/public/http/v1/panel.schema.json +963 -0
  78. package/schemas/public/http/v1/policy-body.schema.json +1376 -0
  79. package/schemas/public/http/v1/schema.json +30 -0
  80. package/schemas/public/http/v1/signed-formats.schema.json +748 -0
  81. package/schemas/public/http/v1/workflow.schema.json +715 -0
  82. package/schemas/public/proto/arcforges/catalog/v1/catalog.proto +204 -0
  83. package/schemas/public/proto/arcforges/events/v1/events.proto +343 -0
  84. package/schemas/public/proto/arcforges/foundation/v1/foundation.proto +384 -0
  85. package/schemas/public/proto/arcforges/hello/v1/hello.proto +23 -0
  86. package/schemas/public/proto/arcforges/publicapi/v1/application.proto +297 -0
  87. package/schemas/public/proto/arcforges/publicapi/v1/chat.proto +1507 -0
  88. package/schemas/public/proto/arcforges/publicapi/v1/commerce.proto +542 -0
  89. package/schemas/public/proto/arcforges/publicapi/v1/connector.proto +172 -0
  90. package/schemas/public/proto/arcforges/publicapi/v1/content.proto +813 -0
  91. package/schemas/public/proto/arcforges/publicapi/v1/descriptors.proto +27 -0
  92. package/schemas/public/proto/arcforges/publicapi/v1/export.proto +112 -0
  93. package/schemas/public/proto/arcforges/publicapi/v1/identity.proto +1350 -0
  94. package/schemas/public/proto/arcforges/publicapi/v1/inprocess-values.proto +134 -0
  95. package/schemas/public/proto/arcforges/publicapi/v1/scope.proto +81 -0
  96. package/schemas/public/proto/arcforges/publicapi/v1/support.proto +242 -0
  97. package/schemas/public/proto/arcforges/publicapi/v1/sync.proto +459 -0
  98. package/schemas/public/proto/arcforges/publicapi/v1/transfer.proto +190 -0
  99. package/schemas/public/proto/arcforges/simulation/v1/simulation.proto +457 -0
  100. package/source.json +50 -11
@@ -0,0 +1,341 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "SPDX-License-Identifier: Apache-2.0",
4
+ "title": "NativeAuth",
5
+ "description": "Closed native-application authorization exceptions: PKCE authorize query, redirect callback queries, application/x-www-form-urlencoded token request (16 KiB) and the NativeSession token response. Shape validity is not code, verifier, redirect or installation authorization.",
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/$defs/NativeAuthorizeRequest"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/NativeAuthorizeCallbackSuccess"
12
+ },
13
+ {
14
+ "$ref": "#/$defs/NativeAuthorizeCallbackFailure"
15
+ },
16
+ {
17
+ "$ref": "#/$defs/NativeTokenRequest"
18
+ },
19
+ {
20
+ "$ref": "#/$defs/NativeTokenResponse"
21
+ }
22
+ ],
23
+ "$defs": {
24
+ "NativeTokenInstalledProduct": {
25
+ "title": "NativeTokenInstalledProduct",
26
+ "type": "object",
27
+ "properties": {
28
+ "product": {
29
+ "type": "string",
30
+ "enum": ["arcscope", "companion"]
31
+ },
32
+ "version": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 128,
36
+ "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
37
+ },
38
+ "installedAt": {
39
+ "type": "string",
40
+ "minLength": 20,
41
+ "maxLength": 30,
42
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
43
+ }
44
+ },
45
+ "required": ["product", "version"],
46
+ "additionalProperties": false
47
+ },
48
+ "NativeTokenDevice": {
49
+ "title": "NativeTokenDevice",
50
+ "type": "object",
51
+ "properties": {
52
+ "deviceId": {
53
+ "type": "string",
54
+ "minLength": 36,
55
+ "maxLength": 36,
56
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
57
+ "x-arcforges-rules": ["nonzeroUuid"]
58
+ },
59
+ "name": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 256
63
+ },
64
+ "platform": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 128,
68
+ "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
69
+ },
70
+ "trust": {
71
+ "type": "string",
72
+ "enum": ["untrusted", "trusted", "revoked"]
73
+ },
74
+ "remoteEnabled": {
75
+ "type": "boolean"
76
+ },
77
+ "revokedAt": {
78
+ "type": "string",
79
+ "minLength": 20,
80
+ "maxLength": 30,
81
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
82
+ },
83
+ "revision": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 19,
87
+ "pattern": "^[1-9][0-9]*$",
88
+ "x-arcforges-rules": ["positiveInt64String"]
89
+ },
90
+ "installed": {
91
+ "type": "array",
92
+ "items": {
93
+ "$ref": "#/$defs/NativeTokenInstalledProduct"
94
+ },
95
+ "maxItems": 64
96
+ }
97
+ },
98
+ "required": ["deviceId", "name", "platform", "trust", "remoteEnabled", "revision"],
99
+ "additionalProperties": false
100
+ },
101
+ "NativeAuthorizeRequest": {
102
+ "title": "NativeAuthorizeRequest",
103
+ "type": "object",
104
+ "properties": {
105
+ "client_id": {
106
+ "type": "string",
107
+ "enum": ["arcscope.desktop", "companion.android", "companion.android.selfhost"]
108
+ },
109
+ "redirect_uri": {
110
+ "type": "string",
111
+ "minLength": 1,
112
+ "maxLength": 2048,
113
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:[\\x21\\x22\\x24-\\x7E]+$"
114
+ },
115
+ "response_type": {
116
+ "type": "string",
117
+ "const": "code"
118
+ },
119
+ "code_challenge": {
120
+ "type": "string",
121
+ "minLength": 43,
122
+ "maxLength": 43,
123
+ "pattern": "^[A-Za-z0-9_-]{43}$"
124
+ },
125
+ "code_challenge_method": {
126
+ "type": "string",
127
+ "const": "S256"
128
+ },
129
+ "state": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "maxLength": 128,
133
+ "pattern": "^[\\x21-\\x7E]+$"
134
+ },
135
+ "installationId": {
136
+ "type": "string",
137
+ "minLength": 36,
138
+ "maxLength": 36,
139
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
140
+ "x-arcforges-rules": ["nonzeroUuid"]
141
+ }
142
+ },
143
+ "required": [
144
+ "client_id",
145
+ "redirect_uri",
146
+ "response_type",
147
+ "code_challenge",
148
+ "code_challenge_method",
149
+ "state",
150
+ "installationId"
151
+ ],
152
+ "additionalProperties": false,
153
+ "x-arcforges-max-bytes": 16384,
154
+ "x-arcforges-wire": "form-urlencoded",
155
+ "x-arcforges-rules": ["nativeClientRedirect"]
156
+ },
157
+ "NativeAuthorizeCallbackSuccess": {
158
+ "title": "NativeAuthorizeCallbackSuccess",
159
+ "type": "object",
160
+ "properties": {
161
+ "code": {
162
+ "type": "string",
163
+ "minLength": 43,
164
+ "maxLength": 43,
165
+ "pattern": "^[A-Za-z0-9_-]{43}$"
166
+ },
167
+ "state": {
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 128,
171
+ "pattern": "^[\\x21-\\x7E]+$"
172
+ }
173
+ },
174
+ "required": ["code", "state"],
175
+ "additionalProperties": false,
176
+ "x-arcforges-max-bytes": 16384,
177
+ "x-arcforges-wire": "form-urlencoded"
178
+ },
179
+ "NativeAuthorizeCallbackFailure": {
180
+ "title": "NativeAuthorizeCallbackFailure",
181
+ "type": "object",
182
+ "properties": {
183
+ "error": {
184
+ "type": "string",
185
+ "minLength": 1,
186
+ "maxLength": 64,
187
+ "pattern": "^[a-z][a-z_]*$"
188
+ },
189
+ "state": {
190
+ "type": "string",
191
+ "minLength": 1,
192
+ "maxLength": 128,
193
+ "pattern": "^[\\x21-\\x7E]+$"
194
+ }
195
+ },
196
+ "required": ["error", "state"],
197
+ "additionalProperties": false,
198
+ "x-arcforges-max-bytes": 16384,
199
+ "x-arcforges-wire": "form-urlencoded"
200
+ },
201
+ "NativeTokenRequest": {
202
+ "title": "NativeTokenRequest",
203
+ "type": "object",
204
+ "properties": {
205
+ "grant_type": {
206
+ "type": "string",
207
+ "const": "authorization_code"
208
+ },
209
+ "code": {
210
+ "type": "string",
211
+ "minLength": 43,
212
+ "maxLength": 43,
213
+ "pattern": "^[A-Za-z0-9_-]{43}$"
214
+ },
215
+ "code_verifier": {
216
+ "type": "string",
217
+ "minLength": 43,
218
+ "maxLength": 128,
219
+ "pattern": "^[A-Za-z0-9._~-]{43,128}$"
220
+ },
221
+ "client_id": {
222
+ "type": "string",
223
+ "enum": ["arcscope.desktop", "companion.android", "companion.android.selfhost"]
224
+ },
225
+ "redirect_uri": {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "maxLength": 2048,
229
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:[\\x21\\x22\\x24-\\x7E]+$"
230
+ },
231
+ "installationId": {
232
+ "type": "string",
233
+ "minLength": 36,
234
+ "maxLength": 36,
235
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
236
+ "x-arcforges-rules": ["nonzeroUuid"]
237
+ }
238
+ },
239
+ "required": [
240
+ "grant_type",
241
+ "code",
242
+ "code_verifier",
243
+ "client_id",
244
+ "redirect_uri",
245
+ "installationId"
246
+ ],
247
+ "additionalProperties": false,
248
+ "x-arcforges-max-bytes": 16384,
249
+ "x-arcforges-wire": "form-urlencoded",
250
+ "x-arcforges-rules": ["nativeClientRedirect"]
251
+ },
252
+ "NativeTokenResponse": {
253
+ "title": "NativeTokenResponse",
254
+ "type": "object",
255
+ "properties": {
256
+ "sessionId": {
257
+ "type": "string",
258
+ "minLength": 36,
259
+ "maxLength": 36,
260
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
261
+ "x-arcforges-rules": ["nonzeroUuid"]
262
+ },
263
+ "accessToken": {
264
+ "type": "string",
265
+ "minLength": 1,
266
+ "x-arcforges-max-utf8-bytes": 8192
267
+ },
268
+ "accessExpiresAt": {
269
+ "type": "string",
270
+ "minLength": 20,
271
+ "maxLength": 30,
272
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
273
+ },
274
+ "refreshToken": {
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "x-arcforges-max-utf8-bytes": 8192
278
+ },
279
+ "refreshExpiresAt": {
280
+ "type": "string",
281
+ "minLength": 20,
282
+ "maxLength": 30,
283
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
284
+ },
285
+ "device": {
286
+ "$ref": "#/$defs/NativeTokenDevice"
287
+ },
288
+ "recoveryGeneration": {
289
+ "type": "string",
290
+ "minLength": 1,
291
+ "maxLength": 20,
292
+ "pattern": "^(0|[1-9][0-9]*)$",
293
+ "x-arcforges-rules": ["uint64String"]
294
+ },
295
+ "purpose": {
296
+ "type": "string",
297
+ "enum": ["authenticate", "enroll", "stepUp", "recover", "cancelDeletion"]
298
+ }
299
+ },
300
+ "required": [
301
+ "sessionId",
302
+ "accessToken",
303
+ "accessExpiresAt",
304
+ "refreshToken",
305
+ "refreshExpiresAt",
306
+ "device",
307
+ "recoveryGeneration",
308
+ "purpose"
309
+ ],
310
+ "additionalProperties": false,
311
+ "x-arcforges-max-bytes": 65536
312
+ }
313
+ },
314
+ "x-arcforges-routes": [
315
+ {
316
+ "id": "native.authorize",
317
+ "method": "GET",
318
+ "path": "/session/v1/native/authorize",
319
+ "credential": "browser-login",
320
+ "origin": "none",
321
+ "csrf": "none",
322
+ "setCookie": "none",
323
+ "cache": "no-store",
324
+ "request": ["NativeAuthorizeRequest"],
325
+ "response": []
326
+ },
327
+ {
328
+ "id": "native.token",
329
+ "method": "POST",
330
+ "path": "/session/v1/native/token",
331
+ "credential": "authorization-code",
332
+ "origin": "none",
333
+ "csrf": "none",
334
+ "setCookie": "none",
335
+ "cache": "no-store",
336
+ "request": ["NativeTokenRequest"],
337
+ "response": ["NativeTokenResponse"]
338
+ }
339
+ ],
340
+ "x-arcforges-schema-version": "1"
341
+ }