@distilled.cloud/cloudflare 0.6.1 → 0.7.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.
- package/lib/services/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
package/lib/services/user.js
CHANGED
|
@@ -10,12 +10,70 @@ import * as API from "../client/api.js";
|
|
|
10
10
|
import * as T from "../traits.js";
|
|
11
11
|
import {} from "../errors.js";
|
|
12
12
|
export const ListAuditLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/audit_logs" }));
|
|
13
|
-
export const ListAuditLogsResponse =
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
result: Schema.Array(Schema.Struct({
|
|
15
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
16
|
+
action: Schema.optional(Schema.Union([
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
result: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
19
|
+
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20
|
+
}),
|
|
21
|
+
Schema.Null,
|
|
22
|
+
])),
|
|
23
|
+
actor: Schema.optional(Schema.Union([
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
26
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
27
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
28
|
+
type: Schema.optional(Schema.Union([
|
|
29
|
+
Schema.Literals(["user", "admin", "Cloudflare"]),
|
|
30
|
+
Schema.Null,
|
|
31
|
+
])),
|
|
32
|
+
}),
|
|
33
|
+
Schema.Null,
|
|
34
|
+
])),
|
|
35
|
+
interface: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
36
|
+
metadata: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
37
|
+
newValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
38
|
+
oldValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
39
|
+
owner: Schema.optional(Schema.Union([
|
|
40
|
+
Schema.Struct({
|
|
41
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
42
|
+
}),
|
|
43
|
+
Schema.Null,
|
|
44
|
+
])),
|
|
45
|
+
resource: Schema.optional(Schema.Union([
|
|
46
|
+
Schema.Struct({
|
|
47
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
48
|
+
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
49
|
+
}),
|
|
50
|
+
Schema.Null,
|
|
51
|
+
])),
|
|
52
|
+
when: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
53
|
+
})),
|
|
54
|
+
resultInfo: Schema.Struct({
|
|
55
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
56
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
57
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
58
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
59
|
+
}).pipe(Schema.encodeKeys({
|
|
60
|
+
count: "count",
|
|
61
|
+
page: "page",
|
|
62
|
+
perPage: "per_page",
|
|
63
|
+
totalCount: "total_count",
|
|
64
|
+
})),
|
|
65
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
66
|
+
export const listAuditLogs = API.makePaginated(() => ({
|
|
16
67
|
input: ListAuditLogsRequest,
|
|
17
68
|
output: ListAuditLogsResponse,
|
|
18
69
|
errors: [],
|
|
70
|
+
pagination: {
|
|
71
|
+
mode: "page",
|
|
72
|
+
inputToken: "page",
|
|
73
|
+
outputToken: "resultInfo.page",
|
|
74
|
+
items: "result",
|
|
75
|
+
pageSize: "perPage",
|
|
76
|
+
},
|
|
19
77
|
}));
|
|
20
78
|
export const ListBillingHistoriesRequest =
|
|
21
79
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/billing/history" }));
|
|
@@ -334,16 +392,114 @@ export const deleteOrganization = API.make(() => ({
|
|
|
334
392
|
}));
|
|
335
393
|
export const GetSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/subscriptions" }));
|
|
336
394
|
export const GetSubscriptionResponse =
|
|
337
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
338
|
-
|
|
395
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
396
|
+
result: Schema.Array(Schema.Struct({
|
|
397
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
398
|
+
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
399
|
+
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
400
|
+
currentPeriodStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
401
|
+
frequency: Schema.optional(Schema.Union([
|
|
402
|
+
Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
|
|
403
|
+
Schema.Null,
|
|
404
|
+
])),
|
|
405
|
+
price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
406
|
+
ratePlan: Schema.optional(Schema.Union([
|
|
407
|
+
Schema.Struct({
|
|
408
|
+
id: Schema.optional(Schema.Union([
|
|
409
|
+
Schema.Literals([
|
|
410
|
+
"free",
|
|
411
|
+
"lite",
|
|
412
|
+
"pro",
|
|
413
|
+
"pro_plus",
|
|
414
|
+
"business",
|
|
415
|
+
"enterprise",
|
|
416
|
+
"partners_free",
|
|
417
|
+
"partners_pro",
|
|
418
|
+
"partners_business",
|
|
419
|
+
"partners_enterprise",
|
|
420
|
+
]),
|
|
421
|
+
Schema.Null,
|
|
422
|
+
])),
|
|
423
|
+
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
424
|
+
externallyManaged: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
425
|
+
isContract: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
426
|
+
publicName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
427
|
+
scope: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
428
|
+
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
429
|
+
}).pipe(Schema.encodeKeys({
|
|
430
|
+
id: "id",
|
|
431
|
+
currency: "currency",
|
|
432
|
+
externallyManaged: "externally_managed",
|
|
433
|
+
isContract: "is_contract",
|
|
434
|
+
publicName: "public_name",
|
|
435
|
+
scope: "scope",
|
|
436
|
+
sets: "sets",
|
|
437
|
+
})),
|
|
438
|
+
Schema.Null,
|
|
439
|
+
])),
|
|
440
|
+
state: Schema.optional(Schema.Union([
|
|
441
|
+
Schema.Literals([
|
|
442
|
+
"Trial",
|
|
443
|
+
"Provisioned",
|
|
444
|
+
"Paid",
|
|
445
|
+
"AwaitingPayment",
|
|
446
|
+
"Cancelled",
|
|
447
|
+
"Failed",
|
|
448
|
+
"Expired",
|
|
449
|
+
]),
|
|
450
|
+
Schema.Null,
|
|
451
|
+
])),
|
|
452
|
+
}).pipe(Schema.encodeKeys({
|
|
453
|
+
id: "id",
|
|
454
|
+
currency: "currency",
|
|
455
|
+
currentPeriodEnd: "current_period_end",
|
|
456
|
+
currentPeriodStart: "current_period_start",
|
|
457
|
+
frequency: "frequency",
|
|
458
|
+
price: "price",
|
|
459
|
+
ratePlan: "rate_plan",
|
|
460
|
+
state: "state",
|
|
461
|
+
}))),
|
|
462
|
+
});
|
|
463
|
+
export const getSubscription = API.makePaginated(() => ({
|
|
339
464
|
input: GetSubscriptionRequest,
|
|
340
465
|
output: GetSubscriptionResponse,
|
|
341
466
|
errors: [],
|
|
467
|
+
pagination: {
|
|
468
|
+
mode: "single",
|
|
469
|
+
items: "result",
|
|
470
|
+
},
|
|
342
471
|
}));
|
|
343
472
|
export const PutSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
344
473
|
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
345
474
|
frequency: Schema.optional(Schema.Literals(["weekly", "monthly", "quarterly", "yearly"])),
|
|
346
|
-
ratePlan: Schema.optional(Schema.
|
|
475
|
+
ratePlan: Schema.optional(Schema.Struct({
|
|
476
|
+
id: Schema.optional(Schema.Literals([
|
|
477
|
+
"free",
|
|
478
|
+
"lite",
|
|
479
|
+
"pro",
|
|
480
|
+
"pro_plus",
|
|
481
|
+
"business",
|
|
482
|
+
"enterprise",
|
|
483
|
+
"partners_free",
|
|
484
|
+
"partners_pro",
|
|
485
|
+
"partners_business",
|
|
486
|
+
"partners_enterprise",
|
|
487
|
+
])),
|
|
488
|
+
currency: Schema.optional(Schema.String),
|
|
489
|
+
externallyManaged: Schema.optional(Schema.Boolean),
|
|
490
|
+
isContract: Schema.optional(Schema.Boolean),
|
|
491
|
+
publicName: Schema.optional(Schema.String),
|
|
492
|
+
scope: Schema.optional(Schema.String),
|
|
493
|
+
sets: Schema.optional(Schema.Array(Schema.String)),
|
|
494
|
+
}).pipe(Schema.encodeKeys({
|
|
495
|
+
id: "id",
|
|
496
|
+
currency: "currency",
|
|
497
|
+
externallyManaged: "externally_managed",
|
|
498
|
+
isContract: "is_contract",
|
|
499
|
+
publicName: "public_name",
|
|
500
|
+
scope: "scope",
|
|
501
|
+
sets: "sets",
|
|
502
|
+
}))),
|
|
347
503
|
}).pipe(Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }), T.Http({ method: "PUT", path: "/user/subscriptions/{identifier}" }));
|
|
348
504
|
export const PutSubscriptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
|
|
349
505
|
export const putSubscription = API.make(() => ({
|
|
@@ -367,24 +523,176 @@ export const deleteSubscription = API.make(() => ({
|
|
|
367
523
|
export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
368
524
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
369
525
|
}).pipe(T.Http({ method: "GET", path: "/user/tokens/{tokenId}" }));
|
|
370
|
-
export const GetTokenResponse =
|
|
371
|
-
|
|
526
|
+
export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
527
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
528
|
+
condition: Schema.optional(Schema.Union([
|
|
529
|
+
Schema.Struct({
|
|
530
|
+
requestIp: Schema.optional(Schema.Union([
|
|
531
|
+
Schema.Struct({
|
|
532
|
+
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
533
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
534
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
535
|
+
Schema.Null,
|
|
536
|
+
])),
|
|
537
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
538
|
+
Schema.Null,
|
|
539
|
+
])),
|
|
540
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
541
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
542
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
543
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
544
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
545
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
546
|
+
policies: Schema.optional(Schema.Union([
|
|
547
|
+
Schema.Array(Schema.Struct({
|
|
548
|
+
id: Schema.String,
|
|
549
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
550
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
551
|
+
id: Schema.String,
|
|
552
|
+
meta: Schema.optional(Schema.Union([
|
|
553
|
+
Schema.Struct({
|
|
554
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
555
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
556
|
+
}),
|
|
557
|
+
Schema.Null,
|
|
558
|
+
])),
|
|
559
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
560
|
+
})),
|
|
561
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
562
|
+
}).pipe(Schema.encodeKeys({
|
|
563
|
+
id: "id",
|
|
564
|
+
effect: "effect",
|
|
565
|
+
permissionGroups: "permission_groups",
|
|
566
|
+
resources: "resources",
|
|
567
|
+
}))),
|
|
568
|
+
Schema.Null,
|
|
569
|
+
])),
|
|
570
|
+
status: Schema.optional(Schema.Union([
|
|
571
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
572
|
+
Schema.Null,
|
|
573
|
+
])),
|
|
574
|
+
})
|
|
575
|
+
.pipe(Schema.encodeKeys({
|
|
576
|
+
id: "id",
|
|
577
|
+
condition: "condition",
|
|
578
|
+
expiresOn: "expires_on",
|
|
579
|
+
issuedOn: "issued_on",
|
|
580
|
+
lastUsedOn: "last_used_on",
|
|
581
|
+
modifiedOn: "modified_on",
|
|
582
|
+
name: "name",
|
|
583
|
+
notBefore: "not_before",
|
|
584
|
+
policies: "policies",
|
|
585
|
+
status: "status",
|
|
586
|
+
}))
|
|
587
|
+
.pipe(T.ResponsePath("result"));
|
|
372
588
|
export const getToken = API.make(() => ({
|
|
373
589
|
input: GetTokenRequest,
|
|
374
590
|
output: GetTokenResponse,
|
|
375
591
|
errors: [],
|
|
376
592
|
}));
|
|
377
593
|
export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/tokens" }));
|
|
378
|
-
export const ListTokensResponse =
|
|
379
|
-
|
|
380
|
-
|
|
594
|
+
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
595
|
+
result: Schema.Array(Schema.Struct({
|
|
596
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
597
|
+
condition: Schema.optional(Schema.Union([
|
|
598
|
+
Schema.Struct({
|
|
599
|
+
requestIp: Schema.optional(Schema.Union([
|
|
600
|
+
Schema.Struct({
|
|
601
|
+
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
602
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
603
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
604
|
+
Schema.Null,
|
|
605
|
+
])),
|
|
606
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
607
|
+
Schema.Null,
|
|
608
|
+
])),
|
|
609
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
610
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
611
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
612
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
613
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
614
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
615
|
+
policies: Schema.optional(Schema.Union([
|
|
616
|
+
Schema.Array(Schema.Struct({
|
|
617
|
+
id: Schema.String,
|
|
618
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
619
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
620
|
+
id: Schema.String,
|
|
621
|
+
meta: Schema.optional(Schema.Union([
|
|
622
|
+
Schema.Struct({
|
|
623
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
624
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
625
|
+
}),
|
|
626
|
+
Schema.Null,
|
|
627
|
+
])),
|
|
628
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
629
|
+
})),
|
|
630
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
631
|
+
}).pipe(Schema.encodeKeys({
|
|
632
|
+
id: "id",
|
|
633
|
+
effect: "effect",
|
|
634
|
+
permissionGroups: "permission_groups",
|
|
635
|
+
resources: "resources",
|
|
636
|
+
}))),
|
|
637
|
+
Schema.Null,
|
|
638
|
+
])),
|
|
639
|
+
status: Schema.optional(Schema.Union([
|
|
640
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
641
|
+
Schema.Null,
|
|
642
|
+
])),
|
|
643
|
+
}).pipe(Schema.encodeKeys({
|
|
644
|
+
id: "id",
|
|
645
|
+
condition: "condition",
|
|
646
|
+
expiresOn: "expires_on",
|
|
647
|
+
issuedOn: "issued_on",
|
|
648
|
+
lastUsedOn: "last_used_on",
|
|
649
|
+
modifiedOn: "modified_on",
|
|
650
|
+
name: "name",
|
|
651
|
+
notBefore: "not_before",
|
|
652
|
+
policies: "policies",
|
|
653
|
+
status: "status",
|
|
654
|
+
}))),
|
|
655
|
+
resultInfo: Schema.Struct({
|
|
656
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
657
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
658
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
659
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
660
|
+
}).pipe(Schema.encodeKeys({
|
|
661
|
+
count: "count",
|
|
662
|
+
page: "page",
|
|
663
|
+
perPage: "per_page",
|
|
664
|
+
totalCount: "total_count",
|
|
665
|
+
})),
|
|
666
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
667
|
+
export const listTokens = API.makePaginated(() => ({
|
|
381
668
|
input: ListTokensRequest,
|
|
382
669
|
output: ListTokensResponse,
|
|
383
670
|
errors: [],
|
|
671
|
+
pagination: {
|
|
672
|
+
mode: "page",
|
|
673
|
+
inputToken: "page",
|
|
674
|
+
outputToken: "resultInfo.page",
|
|
675
|
+
items: "result",
|
|
676
|
+
pageSize: "perPage",
|
|
677
|
+
},
|
|
384
678
|
}));
|
|
385
679
|
export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
386
680
|
name: Schema.String,
|
|
387
|
-
policies: Schema.Array(Schema.
|
|
681
|
+
policies: Schema.Array(Schema.Struct({
|
|
682
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
683
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
684
|
+
id: Schema.String,
|
|
685
|
+
meta: Schema.optional(Schema.Struct({
|
|
686
|
+
key: Schema.optional(Schema.String),
|
|
687
|
+
value: Schema.optional(Schema.String),
|
|
688
|
+
})),
|
|
689
|
+
})),
|
|
690
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
691
|
+
}).pipe(Schema.encodeKeys({
|
|
692
|
+
effect: "effect",
|
|
693
|
+
permissionGroups: "permission_groups",
|
|
694
|
+
resources: "resources",
|
|
695
|
+
}))),
|
|
388
696
|
condition: Schema.optional(Schema.Struct({
|
|
389
697
|
requestIp: Schema.optional(Schema.Struct({
|
|
390
698
|
in: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -420,7 +728,30 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
420
728
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
421
729
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
422
730
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
423
|
-
policies: Schema.optional(Schema.Union([
|
|
731
|
+
policies: Schema.optional(Schema.Union([
|
|
732
|
+
Schema.Array(Schema.Struct({
|
|
733
|
+
id: Schema.String,
|
|
734
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
735
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
736
|
+
id: Schema.String,
|
|
737
|
+
meta: Schema.optional(Schema.Union([
|
|
738
|
+
Schema.Struct({
|
|
739
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
740
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
741
|
+
}),
|
|
742
|
+
Schema.Null,
|
|
743
|
+
])),
|
|
744
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
745
|
+
})),
|
|
746
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
747
|
+
}).pipe(Schema.encodeKeys({
|
|
748
|
+
id: "id",
|
|
749
|
+
effect: "effect",
|
|
750
|
+
permissionGroups: "permission_groups",
|
|
751
|
+
resources: "resources",
|
|
752
|
+
}))),
|
|
753
|
+
Schema.Null,
|
|
754
|
+
])),
|
|
424
755
|
status: Schema.optional(Schema.Union([
|
|
425
756
|
Schema.Literals(["active", "disabled", "expired"]),
|
|
426
757
|
Schema.Null,
|
|
@@ -449,7 +780,21 @@ export const createToken = API.make(() => ({
|
|
|
449
780
|
export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
450
781
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
451
782
|
name: Schema.String,
|
|
452
|
-
policies: Schema.Array(Schema.
|
|
783
|
+
policies: Schema.Array(Schema.Struct({
|
|
784
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
785
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
786
|
+
id: Schema.String,
|
|
787
|
+
meta: Schema.optional(Schema.Struct({
|
|
788
|
+
key: Schema.optional(Schema.String),
|
|
789
|
+
value: Schema.optional(Schema.String),
|
|
790
|
+
})),
|
|
791
|
+
})),
|
|
792
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
793
|
+
}).pipe(Schema.encodeKeys({
|
|
794
|
+
effect: "effect",
|
|
795
|
+
permissionGroups: "permission_groups",
|
|
796
|
+
resources: "resources",
|
|
797
|
+
}))),
|
|
453
798
|
condition: Schema.optional(Schema.Struct({
|
|
454
799
|
requestIp: Schema.optional(Schema.Struct({
|
|
455
800
|
in: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -467,8 +812,68 @@ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
467
812
|
notBefore: "not_before",
|
|
468
813
|
status: "status",
|
|
469
814
|
}), T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }));
|
|
470
|
-
export const UpdateTokenResponse =
|
|
471
|
-
|
|
815
|
+
export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
816
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
817
|
+
condition: Schema.optional(Schema.Union([
|
|
818
|
+
Schema.Struct({
|
|
819
|
+
requestIp: Schema.optional(Schema.Union([
|
|
820
|
+
Schema.Struct({
|
|
821
|
+
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
822
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
823
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
824
|
+
Schema.Null,
|
|
825
|
+
])),
|
|
826
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
827
|
+
Schema.Null,
|
|
828
|
+
])),
|
|
829
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
830
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
831
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
832
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
833
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
834
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
835
|
+
policies: Schema.optional(Schema.Union([
|
|
836
|
+
Schema.Array(Schema.Struct({
|
|
837
|
+
id: Schema.String,
|
|
838
|
+
effect: Schema.Literals(["allow", "deny"]),
|
|
839
|
+
permissionGroups: Schema.Array(Schema.Struct({
|
|
840
|
+
id: Schema.String,
|
|
841
|
+
meta: Schema.optional(Schema.Union([
|
|
842
|
+
Schema.Struct({
|
|
843
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
844
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
845
|
+
}),
|
|
846
|
+
Schema.Null,
|
|
847
|
+
])),
|
|
848
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
849
|
+
})),
|
|
850
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
851
|
+
}).pipe(Schema.encodeKeys({
|
|
852
|
+
id: "id",
|
|
853
|
+
effect: "effect",
|
|
854
|
+
permissionGroups: "permission_groups",
|
|
855
|
+
resources: "resources",
|
|
856
|
+
}))),
|
|
857
|
+
Schema.Null,
|
|
858
|
+
])),
|
|
859
|
+
status: Schema.optional(Schema.Union([
|
|
860
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
861
|
+
Schema.Null,
|
|
862
|
+
])),
|
|
863
|
+
})
|
|
864
|
+
.pipe(Schema.encodeKeys({
|
|
865
|
+
id: "id",
|
|
866
|
+
condition: "condition",
|
|
867
|
+
expiresOn: "expires_on",
|
|
868
|
+
issuedOn: "issued_on",
|
|
869
|
+
lastUsedOn: "last_used_on",
|
|
870
|
+
modifiedOn: "modified_on",
|
|
871
|
+
name: "name",
|
|
872
|
+
notBefore: "not_before",
|
|
873
|
+
policies: "policies",
|
|
874
|
+
status: "status",
|
|
875
|
+
}))
|
|
876
|
+
.pipe(T.ResponsePath("result"));
|
|
472
877
|
export const updateToken = API.make(() => ({
|
|
473
878
|
input: UpdateTokenRequest,
|
|
474
879
|
output: UpdateTokenResponse,
|
|
@@ -535,7 +940,7 @@ export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
535
940
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
536
941
|
}).pipe(T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" }));
|
|
537
942
|
export const PutTokenValueResponse =
|
|
538
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
943
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
539
944
|
export const putTokenValue = API.make(() => ({
|
|
540
945
|
input: PutTokenValueRequest,
|
|
541
946
|
output: PutTokenValueResponse,
|
|
@@ -551,7 +956,16 @@ export const GetUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
551
956
|
hasEnterpriseZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
552
957
|
hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
553
958
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
554
|
-
organizations: Schema.optional(Schema.Union([
|
|
959
|
+
organizations: Schema.optional(Schema.Union([
|
|
960
|
+
Schema.Array(Schema.Struct({
|
|
961
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
962
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
963
|
+
permissions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
964
|
+
roles: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
965
|
+
status: Schema.optional(Schema.Union([Schema.Literals(["member", "invited"]), Schema.Null])),
|
|
966
|
+
})),
|
|
967
|
+
Schema.Null,
|
|
968
|
+
])),
|
|
555
969
|
suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
556
970
|
telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
557
971
|
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -602,7 +1016,16 @@ export const PatchUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
602
1016
|
hasEnterpriseZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
603
1017
|
hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
604
1018
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
605
|
-
organizations: Schema.optional(Schema.Union([
|
|
1019
|
+
organizations: Schema.optional(Schema.Union([
|
|
1020
|
+
Schema.Array(Schema.Struct({
|
|
1021
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1022
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1023
|
+
permissions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1024
|
+
roles: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1025
|
+
status: Schema.optional(Schema.Union([Schema.Literals(["member", "invited"]), Schema.Null])),
|
|
1026
|
+
})),
|
|
1027
|
+
Schema.Null,
|
|
1028
|
+
])),
|
|
606
1029
|
suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
607
1030
|
telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
608
1031
|
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|