@alienplatform/manager-api 3.3.62 → 3.3.63
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/README.md +24 -2
- package/esm/funcs/identityEnrollRuntimeIdentity.d.ts +11 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.js +72 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.js.map +1 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.d.ts +14 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.js +75 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.js.map +1 -0
- package/esm/funcs/identityIssueEnrollmentCode.d.ts +15 -0
- package/esm/funcs/identityIssueEnrollmentCode.d.ts.map +1 -0
- package/esm/funcs/identityIssueEnrollmentCode.js +81 -0
- package/esm/funcs/identityIssueEnrollmentCode.js.map +1 -0
- package/esm/funcs/identityRotateRuntimeIdentity.d.ts +11 -0
- package/esm/funcs/identityRotateRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityRotateRuntimeIdentity.js +72 -0
- package/esm/funcs/identityRotateRuntimeIdentity.js.map +1 -0
- package/esm/funcs/valuesDeleteValue.d.ts +11 -0
- package/esm/funcs/valuesDeleteValue.d.ts.map +1 -0
- package/esm/funcs/valuesDeleteValue.js +82 -0
- package/esm/funcs/valuesDeleteValue.js.map +1 -0
- package/esm/funcs/valuesListValues.d.ts +12 -0
- package/esm/funcs/valuesListValues.d.ts.map +1 -0
- package/esm/funcs/valuesListValues.js +78 -0
- package/esm/funcs/valuesListValues.js.map +1 -0
- package/esm/funcs/valuesPutValues.d.ts +15 -0
- package/esm/funcs/valuesPutValues.d.ts.map +1 -0
- package/esm/funcs/valuesPutValues.js +86 -0
- package/esm/funcs/valuesPutValues.js.map +1 -0
- package/esm/funcs/valuesVerifyValues.d.ts +11 -0
- package/esm/funcs/valuesVerifyValues.d.ts.map +1 -0
- package/esm/funcs/valuesVerifyValues.js +85 -0
- package/esm/funcs/valuesVerifyValues.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/agentsyncrequest.d.ts +20 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +4 -0
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/aimodelavailabilityobservation.d.ts +17 -0
- package/esm/models/aimodelavailabilityobservation.d.ts.map +1 -1
- package/esm/models/aimodelavailabilityobservation.js +3 -0
- package/esm/models/aimodelavailabilityobservation.js.map +1 -1
- package/esm/models/aiquotawarning.d.ts +19 -0
- package/esm/models/aiquotawarning.d.ts.map +1 -0
- package/esm/models/aiquotawarning.js +14 -0
- package/esm/models/aiquotawarning.js.map +1 -0
- package/esm/models/deploymentresponse.d.ts +13 -0
- package/esm/models/deploymentresponse.d.ts.map +1 -1
- package/esm/models/deploymentresponse.js +2 -0
- package/esm/models/deploymentresponse.js.map +1 -1
- package/esm/models/externalbindingunion.d.ts +353 -18
- package/esm/models/externalbindingunion.d.ts.map +1 -1
- package/esm/models/externalbindingunion.js +241 -20
- package/esm/models/externalbindingunion.js.map +1 -1
- package/esm/models/identityenrollmentrequest.d.ts +17 -0
- package/esm/models/identityenrollmentrequest.d.ts.map +1 -0
- package/esm/models/identityenrollmentrequest.js +13 -0
- package/esm/models/identityenrollmentrequest.js.map +1 -0
- package/esm/models/identityenrollmentresponse.d.ts +13 -0
- package/esm/models/identityenrollmentresponse.d.ts.map +1 -0
- package/esm/models/identityenrollmentresponse.js +16 -0
- package/esm/models/identityenrollmentresponse.js.map +1 -0
- package/esm/models/identityexchangerequest.d.ts +27 -0
- package/esm/models/identityexchangerequest.d.ts.map +1 -0
- package/esm/models/identityexchangerequest.js +16 -0
- package/esm/models/identityexchangerequest.js.map +1 -0
- package/esm/models/identityrotationrequest.d.ts +19 -0
- package/esm/models/identityrotationrequest.d.ts.map +1 -0
- package/esm/models/identityrotationrequest.js +14 -0
- package/esm/models/identityrotationrequest.js.map +1 -0
- package/esm/models/identityrotationresponse.d.ts +14 -0
- package/esm/models/identityrotationresponse.d.ts.map +1 -0
- package/esm/models/identityrotationresponse.js +14 -0
- package/esm/models/identityrotationresponse.js.map +1 -0
- package/esm/models/index.d.ts +24 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +24 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/installedsetup.d.ts +46 -0
- package/esm/models/installedsetup.d.ts.map +1 -0
- package/esm/models/installedsetup.js +17 -0
- package/esm/models/installedsetup.js.map +1 -0
- package/esm/models/issuedenrollmentcode.d.ts +19 -0
- package/esm/models/issuedenrollmentcode.d.ts.map +1 -0
- package/esm/models/issuedenrollmentcode.js +16 -0
- package/esm/models/issuedenrollmentcode.js.map +1 -0
- package/esm/models/issuedruntimecredential.d.ts +14 -0
- package/esm/models/issuedruntimecredential.d.ts.map +1 -0
- package/esm/models/issuedruntimecredential.js +14 -0
- package/esm/models/issuedruntimecredential.js.map +1 -0
- package/esm/models/managercapabilities.d.ts +7 -0
- package/esm/models/managercapabilities.d.ts.map +1 -1
- package/esm/models/managercapabilities.js +1 -0
- package/esm/models/managercapabilities.js.map +1 -1
- package/esm/models/networksettings.d.ts +2 -2
- package/esm/models/operations/deletevalue.d.ts +20 -0
- package/esm/models/operations/deletevalue.d.ts.map +1 -0
- package/esm/models/operations/deletevalue.js +13 -0
- package/esm/models/operations/deletevalue.js.map +1 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +5 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/issueenrollmentcode.d.ts +15 -0
- package/esm/models/operations/issueenrollmentcode.d.ts.map +1 -0
- package/esm/models/operations/issueenrollmentcode.js +12 -0
- package/esm/models/operations/issueenrollmentcode.js.map +1 -0
- package/esm/models/operations/listvalues.d.ts +15 -0
- package/esm/models/operations/listvalues.d.ts.map +1 -0
- package/esm/models/operations/listvalues.js +12 -0
- package/esm/models/operations/listvalues.js.map +1 -0
- package/esm/models/operations/putvalues.d.ts +23 -0
- package/esm/models/operations/putvalues.d.ts.map +1 -0
- package/esm/models/operations/putvalues.js +21 -0
- package/esm/models/operations/putvalues.js.map +1 -0
- package/esm/models/operations/verifyvalues.d.ts +18 -0
- package/esm/models/operations/verifyvalues.d.ts.map +1 -0
- package/esm/models/operations/verifyvalues.js +19 -0
- package/esm/models/operations/verifyvalues.js.map +1 -0
- package/esm/models/putvalue.d.ts +23 -0
- package/esm/models/putvalue.d.ts.map +1 -0
- package/esm/models/putvalue.js +16 -0
- package/esm/models/putvalue.js.map +1 -0
- package/esm/models/putvaluesrequest.d.ts +13 -0
- package/esm/models/putvaluesrequest.d.ts.map +1 -0
- package/esm/models/putvaluesrequest.js +13 -0
- package/esm/models/putvaluesrequest.js.map +1 -0
- package/esm/models/redisheartbeatdata.d.ts +157 -0
- package/esm/models/redisheartbeatdata.d.ts.map +1 -0
- package/esm/models/redisheartbeatdata.js +66 -0
- package/esm/models/redisheartbeatdata.js.map +1 -0
- package/esm/models/redisheartbeatstatus.d.ts +28 -0
- package/esm/models/redisheartbeatstatus.d.ts.map +1 -0
- package/esm/models/redisheartbeatstatus.js +20 -0
- package/esm/models/redisheartbeatstatus.js.map +1 -0
- package/esm/models/redismetricssample.d.ts +36 -0
- package/esm/models/redismetricssample.d.ts.map +1 -0
- package/esm/models/redismetricssample.js +15 -0
- package/esm/models/redismetricssample.js.map +1 -0
- package/esm/models/redisobservedconfig.d.ts +48 -0
- package/esm/models/redisobservedconfig.d.ts.map +1 -0
- package/esm/models/redisobservedconfig.js +21 -0
- package/esm/models/redisobservedconfig.js.map +1 -0
- package/esm/models/resourceheartbeatdata.d.ts +21 -2
- package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
- package/esm/models/resourceheartbeatdata.js +10 -0
- package/esm/models/resourceheartbeatdata.js.map +1 -1
- package/esm/models/runtimeidentityproof.d.ts +71 -0
- package/esm/models/runtimeidentityproof.d.ts.map +1 -0
- package/esm/models/runtimeidentityproof.js +47 -0
- package/esm/models/runtimeidentityproof.js.map +1 -0
- package/esm/models/runtimepurpose.d.ts +113 -0
- package/esm/models/runtimepurpose.d.ts.map +1 -0
- package/esm/models/runtimepurpose.js +70 -0
- package/esm/models/runtimepurpose.js.map +1 -0
- package/esm/models/valuekind.d.ts +18 -0
- package/esm/models/valuekind.d.ts.map +1 -0
- package/esm/models/valuekind.js +16 -0
- package/esm/models/valuekind.js.map +1 -0
- package/esm/models/valueslotentry.d.ts +24 -0
- package/esm/models/valueslotentry.d.ts.map +1 -0
- package/esm/models/valueslotentry.js +18 -0
- package/esm/models/valueslotentry.js.map +1 -0
- package/esm/models/valueslotsresponse.d.ts +11 -0
- package/esm/models/valueslotsresponse.d.ts.map +1 -0
- package/esm/models/valueslotsresponse.js +14 -0
- package/esm/models/valueslotsresponse.js.map +1 -0
- package/esm/models/verifyresult.d.ts +11 -0
- package/esm/models/verifyresult.d.ts.map +1 -0
- package/esm/models/verifyresult.js +15 -0
- package/esm/models/verifyresult.js.map +1 -0
- package/esm/models/verifyvalue.d.ts +14 -0
- package/esm/models/verifyvalue.d.ts.map +1 -0
- package/esm/models/verifyvalue.js +13 -0
- package/esm/models/verifyvalue.js.map +1 -0
- package/esm/models/verifyvaluesrequest.d.ts +13 -0
- package/esm/models/verifyvaluesrequest.d.ts.map +1 -0
- package/esm/models/verifyvaluesrequest.js +13 -0
- package/esm/models/verifyvaluesrequest.js.map +1 -0
- package/esm/models/verifyvaluesresponse.d.ts +11 -0
- package/esm/models/verifyvaluesresponse.d.ts.map +1 -0
- package/esm/models/verifyvaluesresponse.js +14 -0
- package/esm/models/verifyvaluesresponse.js.map +1 -0
- package/esm/sdk/identity.d.ts +16 -0
- package/esm/sdk/identity.d.ts.map +1 -0
- package/esm/sdk/identity.js +30 -0
- package/esm/sdk/identity.js.map +1 -0
- package/esm/sdk/sdk.d.ts +6 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +8 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/values.d.ts +13 -0
- package/esm/sdk/values.d.ts.map +1 -0
- package/esm/sdk/values.js +27 -0
- package/esm/sdk/values.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/identityEnrollRuntimeIdentity.ts +154 -0
- package/src/funcs/identityExchangeRuntimeIdentity.ts +157 -0
- package/src/funcs/identityIssueEnrollmentCode.ts +165 -0
- package/src/funcs/identityRotateRuntimeIdentity.ts +154 -0
- package/src/funcs/valuesDeleteValue.ts +165 -0
- package/src/funcs/valuesListValues.ts +161 -0
- package/src/funcs/valuesPutValues.ts +169 -0
- package/src/funcs/valuesVerifyValues.ts +172 -0
- package/src/lib/config.ts +2 -2
- package/src/models/agentsyncrequest.ts +27 -0
- package/src/models/aimodelavailabilityobservation.ts +23 -0
- package/src/models/aiquotawarning.ts +35 -0
- package/src/models/deploymentresponse.ts +15 -0
- package/src/models/externalbindingunion.ts +716 -46
- package/src/models/identityenrollmentrequest.ts +36 -0
- package/src/models/identityenrollmentresponse.ts +36 -0
- package/src/models/identityexchangerequest.ts +55 -0
- package/src/models/identityrotationrequest.ts +39 -0
- package/src/models/identityrotationresponse.ts +35 -0
- package/src/models/index.ts +24 -0
- package/src/models/installedsetup.ts +65 -0
- package/src/models/issuedenrollmentcode.ts +42 -0
- package/src/models/issuedruntimecredential.ts +35 -0
- package/src/models/managercapabilities.ts +8 -0
- package/src/models/networksettings.ts +2 -2
- package/src/models/operations/deletevalue.ts +39 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/issueenrollmentcode.ts +33 -0
- package/src/models/operations/listvalues.ts +33 -0
- package/src/models/operations/putvalues.ts +49 -0
- package/src/models/operations/verifyvalues.ts +42 -0
- package/src/models/putvalue.ts +37 -0
- package/src/models/putvaluesrequest.ts +35 -0
- package/src/models/redisheartbeatdata.ts +284 -0
- package/src/models/redisheartbeatstatus.ts +61 -0
- package/src/models/redismetricssample.ts +57 -0
- package/src/models/redisobservedconfig.ts +75 -0
- package/src/models/resourceheartbeatdata.ts +42 -0
- package/src/models/runtimeidentityproof.ts +168 -0
- package/src/models/runtimepurpose.ts +266 -0
- package/src/models/valuekind.ts +26 -0
- package/src/models/valueslotentry.ts +46 -0
- package/src/models/valueslotsresponse.ts +34 -0
- package/src/models/verifyresult.ts +30 -0
- package/src/models/verifyvalue.ts +29 -0
- package/src/models/verifyvaluesrequest.ts +35 -0
- package/src/models/verifyvaluesresponse.ts +31 -0
- package/src/sdk/identity.ts +64 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/values.ts +63 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The explicit daily-key exception for enrolled components.
|
|
9
|
+
*/
|
|
10
|
+
export type RuntimeIdentityProofDailyKey = {
|
|
11
|
+
key: string;
|
|
12
|
+
type: "dailyKey";
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A bounded parent session; it cannot renew itself.
|
|
17
|
+
*/
|
|
18
|
+
export type RuntimeIdentityProofSession = {
|
|
19
|
+
token: string;
|
|
20
|
+
type: "session";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A metadata identity token for this manager's audience.
|
|
25
|
+
*/
|
|
26
|
+
export type RuntimeIdentityProofGcp = {
|
|
27
|
+
idToken: string;
|
|
28
|
+
type: "gcp";
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* An audience-signed STS GetCallerIdentity request.
|
|
33
|
+
*/
|
|
34
|
+
export type RuntimeIdentityProofAws = {
|
|
35
|
+
presignedUrl: string;
|
|
36
|
+
type: "aws";
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Proof material is intentionally not Debug: providers must never log it.
|
|
41
|
+
*/
|
|
42
|
+
export type RuntimeIdentityProof =
|
|
43
|
+
| RuntimeIdentityProofAws
|
|
44
|
+
| RuntimeIdentityProofGcp
|
|
45
|
+
| RuntimeIdentityProofSession
|
|
46
|
+
| RuntimeIdentityProofDailyKey;
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type RuntimeIdentityProofDailyKey$Outbound = {
|
|
50
|
+
key: string;
|
|
51
|
+
type: "dailyKey";
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const RuntimeIdentityProofDailyKey$outboundSchema: z.ZodType<
|
|
56
|
+
RuntimeIdentityProofDailyKey$Outbound,
|
|
57
|
+
RuntimeIdentityProofDailyKey
|
|
58
|
+
> = z.object({
|
|
59
|
+
key: z.string(),
|
|
60
|
+
type: z.literal("dailyKey"),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function runtimeIdentityProofDailyKeyToJSON(
|
|
64
|
+
runtimeIdentityProofDailyKey: RuntimeIdentityProofDailyKey,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
RuntimeIdentityProofDailyKey$outboundSchema.parse(
|
|
68
|
+
runtimeIdentityProofDailyKey,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type RuntimeIdentityProofSession$Outbound = {
|
|
75
|
+
token: string;
|
|
76
|
+
type: "session";
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const RuntimeIdentityProofSession$outboundSchema: z.ZodType<
|
|
81
|
+
RuntimeIdentityProofSession$Outbound,
|
|
82
|
+
RuntimeIdentityProofSession
|
|
83
|
+
> = z.object({
|
|
84
|
+
token: z.string(),
|
|
85
|
+
type: z.literal("session"),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function runtimeIdentityProofSessionToJSON(
|
|
89
|
+
runtimeIdentityProofSession: RuntimeIdentityProofSession,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
RuntimeIdentityProofSession$outboundSchema.parse(
|
|
93
|
+
runtimeIdentityProofSession,
|
|
94
|
+
),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export type RuntimeIdentityProofGcp$Outbound = {
|
|
100
|
+
idToken: string;
|
|
101
|
+
type: "gcp";
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const RuntimeIdentityProofGcp$outboundSchema: z.ZodType<
|
|
106
|
+
RuntimeIdentityProofGcp$Outbound,
|
|
107
|
+
RuntimeIdentityProofGcp
|
|
108
|
+
> = z.object({
|
|
109
|
+
idToken: z.string(),
|
|
110
|
+
type: z.literal("gcp"),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export function runtimeIdentityProofGcpToJSON(
|
|
114
|
+
runtimeIdentityProofGcp: RuntimeIdentityProofGcp,
|
|
115
|
+
): string {
|
|
116
|
+
return JSON.stringify(
|
|
117
|
+
RuntimeIdentityProofGcp$outboundSchema.parse(runtimeIdentityProofGcp),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type RuntimeIdentityProofAws$Outbound = {
|
|
123
|
+
presignedUrl: string;
|
|
124
|
+
type: "aws";
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const RuntimeIdentityProofAws$outboundSchema: z.ZodType<
|
|
129
|
+
RuntimeIdentityProofAws$Outbound,
|
|
130
|
+
RuntimeIdentityProofAws
|
|
131
|
+
> = z.object({
|
|
132
|
+
presignedUrl: z.string(),
|
|
133
|
+
type: z.literal("aws"),
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export function runtimeIdentityProofAwsToJSON(
|
|
137
|
+
runtimeIdentityProofAws: RuntimeIdentityProofAws,
|
|
138
|
+
): string {
|
|
139
|
+
return JSON.stringify(
|
|
140
|
+
RuntimeIdentityProofAws$outboundSchema.parse(runtimeIdentityProofAws),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type RuntimeIdentityProof$Outbound =
|
|
146
|
+
| RuntimeIdentityProofAws$Outbound
|
|
147
|
+
| RuntimeIdentityProofGcp$Outbound
|
|
148
|
+
| RuntimeIdentityProofSession$Outbound
|
|
149
|
+
| RuntimeIdentityProofDailyKey$Outbound;
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const RuntimeIdentityProof$outboundSchema: z.ZodType<
|
|
153
|
+
RuntimeIdentityProof$Outbound,
|
|
154
|
+
RuntimeIdentityProof
|
|
155
|
+
> = z.union([
|
|
156
|
+
z.lazy(() => RuntimeIdentityProofAws$outboundSchema),
|
|
157
|
+
z.lazy(() => RuntimeIdentityProofGcp$outboundSchema),
|
|
158
|
+
z.lazy(() => RuntimeIdentityProofSession$outboundSchema),
|
|
159
|
+
z.lazy(() => RuntimeIdentityProofDailyKey$outboundSchema),
|
|
160
|
+
]);
|
|
161
|
+
|
|
162
|
+
export function runtimeIdentityProofToJSON(
|
|
163
|
+
runtimeIdentityProof: RuntimeIdentityProof,
|
|
164
|
+
): string {
|
|
165
|
+
return JSON.stringify(
|
|
166
|
+
RuntimeIdentityProof$outboundSchema.parse(runtimeIdentityProof),
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
CommandTarget,
|
|
8
|
+
CommandTarget$Outbound,
|
|
9
|
+
CommandTarget$outboundSchema,
|
|
10
|
+
} from "./commandtarget.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Receive commands for one app-owned target.
|
|
14
|
+
*/
|
|
15
|
+
export type RuntimePurposeReceiveCommands = {
|
|
16
|
+
/**
|
|
17
|
+
* Identifies the specific resource a command is addressed to.
|
|
18
|
+
*/
|
|
19
|
+
target: CommandTarget;
|
|
20
|
+
type: "receiveCommands";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Relay commands to one app worker, without dispatch or administrative rights.
|
|
25
|
+
*/
|
|
26
|
+
export type RuntimePurposeOperationRelay = {
|
|
27
|
+
/**
|
|
28
|
+
* Identifies the specific resource a command is addressed to.
|
|
29
|
+
*/
|
|
30
|
+
target: CommandTarget;
|
|
31
|
+
type: "operationRelay";
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Receive the operator's fixed operations queue.
|
|
36
|
+
*/
|
|
37
|
+
export type RuntimePurposeOperatorOperations = {
|
|
38
|
+
type: "operatorOperations";
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Connect the recorded operator tunnel.
|
|
43
|
+
*/
|
|
44
|
+
export type RuntimePurposeOperatorTunnel = {
|
|
45
|
+
type: "operatorTunnel";
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Pull deployment images through the registry receiver.
|
|
50
|
+
*/
|
|
51
|
+
export type RuntimePurposeRegistryPull = {
|
|
52
|
+
type: "registryPull";
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Reconcile the recorded operator deployment.
|
|
57
|
+
*/
|
|
58
|
+
export type RuntimePurposeOperatorSync = {
|
|
59
|
+
type: "operatorSync";
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Ingest telemetry for the recorded deployment.
|
|
64
|
+
*/
|
|
65
|
+
export type RuntimePurposeTelemetry = {
|
|
66
|
+
type: "telemetry";
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Runtime operations cannot administer deployments or mint credentials.
|
|
71
|
+
*/
|
|
72
|
+
export type RuntimePurpose =
|
|
73
|
+
| RuntimePurposeTelemetry
|
|
74
|
+
| RuntimePurposeOperatorSync
|
|
75
|
+
| RuntimePurposeRegistryPull
|
|
76
|
+
| RuntimePurposeOperatorTunnel
|
|
77
|
+
| RuntimePurposeOperatorOperations
|
|
78
|
+
| RuntimePurposeOperationRelay
|
|
79
|
+
| RuntimePurposeReceiveCommands;
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type RuntimePurposeReceiveCommands$Outbound = {
|
|
83
|
+
target: CommandTarget$Outbound;
|
|
84
|
+
type: "receiveCommands";
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const RuntimePurposeReceiveCommands$outboundSchema: z.ZodType<
|
|
89
|
+
RuntimePurposeReceiveCommands$Outbound,
|
|
90
|
+
RuntimePurposeReceiveCommands
|
|
91
|
+
> = z.object({
|
|
92
|
+
target: CommandTarget$outboundSchema,
|
|
93
|
+
type: z.literal("receiveCommands"),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function runtimePurposeReceiveCommandsToJSON(
|
|
97
|
+
runtimePurposeReceiveCommands: RuntimePurposeReceiveCommands,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
RuntimePurposeReceiveCommands$outboundSchema.parse(
|
|
101
|
+
runtimePurposeReceiveCommands,
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export type RuntimePurposeOperationRelay$Outbound = {
|
|
108
|
+
target: CommandTarget$Outbound;
|
|
109
|
+
type: "operationRelay";
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const RuntimePurposeOperationRelay$outboundSchema: z.ZodType<
|
|
114
|
+
RuntimePurposeOperationRelay$Outbound,
|
|
115
|
+
RuntimePurposeOperationRelay
|
|
116
|
+
> = z.object({
|
|
117
|
+
target: CommandTarget$outboundSchema,
|
|
118
|
+
type: z.literal("operationRelay"),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export function runtimePurposeOperationRelayToJSON(
|
|
122
|
+
runtimePurposeOperationRelay: RuntimePurposeOperationRelay,
|
|
123
|
+
): string {
|
|
124
|
+
return JSON.stringify(
|
|
125
|
+
RuntimePurposeOperationRelay$outboundSchema.parse(
|
|
126
|
+
runtimePurposeOperationRelay,
|
|
127
|
+
),
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type RuntimePurposeOperatorOperations$Outbound = {
|
|
133
|
+
type: "operatorOperations";
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const RuntimePurposeOperatorOperations$outboundSchema: z.ZodType<
|
|
138
|
+
RuntimePurposeOperatorOperations$Outbound,
|
|
139
|
+
RuntimePurposeOperatorOperations
|
|
140
|
+
> = z.object({
|
|
141
|
+
type: z.literal("operatorOperations"),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export function runtimePurposeOperatorOperationsToJSON(
|
|
145
|
+
runtimePurposeOperatorOperations: RuntimePurposeOperatorOperations,
|
|
146
|
+
): string {
|
|
147
|
+
return JSON.stringify(
|
|
148
|
+
RuntimePurposeOperatorOperations$outboundSchema.parse(
|
|
149
|
+
runtimePurposeOperatorOperations,
|
|
150
|
+
),
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type RuntimePurposeOperatorTunnel$Outbound = {
|
|
156
|
+
type: "operatorTunnel";
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const RuntimePurposeOperatorTunnel$outboundSchema: z.ZodType<
|
|
161
|
+
RuntimePurposeOperatorTunnel$Outbound,
|
|
162
|
+
RuntimePurposeOperatorTunnel
|
|
163
|
+
> = z.object({
|
|
164
|
+
type: z.literal("operatorTunnel"),
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
export function runtimePurposeOperatorTunnelToJSON(
|
|
168
|
+
runtimePurposeOperatorTunnel: RuntimePurposeOperatorTunnel,
|
|
169
|
+
): string {
|
|
170
|
+
return JSON.stringify(
|
|
171
|
+
RuntimePurposeOperatorTunnel$outboundSchema.parse(
|
|
172
|
+
runtimePurposeOperatorTunnel,
|
|
173
|
+
),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export type RuntimePurposeRegistryPull$Outbound = {
|
|
179
|
+
type: "registryPull";
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const RuntimePurposeRegistryPull$outboundSchema: z.ZodType<
|
|
184
|
+
RuntimePurposeRegistryPull$Outbound,
|
|
185
|
+
RuntimePurposeRegistryPull
|
|
186
|
+
> = z.object({
|
|
187
|
+
type: z.literal("registryPull"),
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
export function runtimePurposeRegistryPullToJSON(
|
|
191
|
+
runtimePurposeRegistryPull: RuntimePurposeRegistryPull,
|
|
192
|
+
): string {
|
|
193
|
+
return JSON.stringify(
|
|
194
|
+
RuntimePurposeRegistryPull$outboundSchema.parse(runtimePurposeRegistryPull),
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** @internal */
|
|
199
|
+
export type RuntimePurposeOperatorSync$Outbound = {
|
|
200
|
+
type: "operatorSync";
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const RuntimePurposeOperatorSync$outboundSchema: z.ZodType<
|
|
205
|
+
RuntimePurposeOperatorSync$Outbound,
|
|
206
|
+
RuntimePurposeOperatorSync
|
|
207
|
+
> = z.object({
|
|
208
|
+
type: z.literal("operatorSync"),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
export function runtimePurposeOperatorSyncToJSON(
|
|
212
|
+
runtimePurposeOperatorSync: RuntimePurposeOperatorSync,
|
|
213
|
+
): string {
|
|
214
|
+
return JSON.stringify(
|
|
215
|
+
RuntimePurposeOperatorSync$outboundSchema.parse(runtimePurposeOperatorSync),
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
export type RuntimePurposeTelemetry$Outbound = {
|
|
221
|
+
type: "telemetry";
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export const RuntimePurposeTelemetry$outboundSchema: z.ZodType<
|
|
226
|
+
RuntimePurposeTelemetry$Outbound,
|
|
227
|
+
RuntimePurposeTelemetry
|
|
228
|
+
> = z.object({
|
|
229
|
+
type: z.literal("telemetry"),
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export function runtimePurposeTelemetryToJSON(
|
|
233
|
+
runtimePurposeTelemetry: RuntimePurposeTelemetry,
|
|
234
|
+
): string {
|
|
235
|
+
return JSON.stringify(
|
|
236
|
+
RuntimePurposeTelemetry$outboundSchema.parse(runtimePurposeTelemetry),
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export type RuntimePurpose$Outbound =
|
|
242
|
+
| RuntimePurposeTelemetry$Outbound
|
|
243
|
+
| RuntimePurposeOperatorSync$Outbound
|
|
244
|
+
| RuntimePurposeRegistryPull$Outbound
|
|
245
|
+
| RuntimePurposeOperatorTunnel$Outbound
|
|
246
|
+
| RuntimePurposeOperatorOperations$Outbound
|
|
247
|
+
| RuntimePurposeOperationRelay$Outbound
|
|
248
|
+
| RuntimePurposeReceiveCommands$Outbound;
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const RuntimePurpose$outboundSchema: z.ZodType<
|
|
252
|
+
RuntimePurpose$Outbound,
|
|
253
|
+
RuntimePurpose
|
|
254
|
+
> = z.union([
|
|
255
|
+
z.lazy(() => RuntimePurposeTelemetry$outboundSchema),
|
|
256
|
+
z.lazy(() => RuntimePurposeOperatorSync$outboundSchema),
|
|
257
|
+
z.lazy(() => RuntimePurposeRegistryPull$outboundSchema),
|
|
258
|
+
z.lazy(() => RuntimePurposeOperatorTunnel$outboundSchema),
|
|
259
|
+
z.lazy(() => RuntimePurposeOperatorOperations$outboundSchema),
|
|
260
|
+
z.lazy(() => RuntimePurposeOperationRelay$outboundSchema),
|
|
261
|
+
z.lazy(() => RuntimePurposeReceiveCommands$outboundSchema),
|
|
262
|
+
]);
|
|
263
|
+
|
|
264
|
+
export function runtimePurposeToJSON(runtimePurpose: RuntimePurpose): string {
|
|
265
|
+
return JSON.stringify(RuntimePurpose$outboundSchema.parse(runtimePurpose));
|
|
266
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Whether a value is shown back to people. Secrets never are.
|
|
10
|
+
*/
|
|
11
|
+
export const ValueKind = {
|
|
12
|
+
Plain: "plain",
|
|
13
|
+
Secret: "secret",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a value is shown back to people. Secrets never are.
|
|
17
|
+
*/
|
|
18
|
+
export type ValueKind = ClosedEnum<typeof ValueKind>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ValueKind$inboundSchema: z.ZodEnum<typeof ValueKind> = z.enum(
|
|
22
|
+
ValueKind,
|
|
23
|
+
);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ValueKind$outboundSchema: z.ZodEnum<typeof ValueKind> =
|
|
26
|
+
ValueKind$inboundSchema;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import { ValueKind, ValueKind$inboundSchema } from "./valuekind.js";
|
|
10
|
+
|
|
11
|
+
export type ValueSlotEntry = {
|
|
12
|
+
/**
|
|
13
|
+
* Keyed digest of the value, lowercase hex.
|
|
14
|
+
*/
|
|
15
|
+
digest: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether a value is shown back to people. Secrets never are.
|
|
18
|
+
*/
|
|
19
|
+
kind: ValueKind;
|
|
20
|
+
slot: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
/**
|
|
23
|
+
* The value, for plain slots only.
|
|
24
|
+
*/
|
|
25
|
+
value?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ValueSlotEntry$inboundSchema: z.ZodType<ValueSlotEntry, unknown> =
|
|
30
|
+
z.object({
|
|
31
|
+
digest: z.string(),
|
|
32
|
+
kind: ValueKind$inboundSchema,
|
|
33
|
+
slot: z.string(),
|
|
34
|
+
updatedAt: z.string(),
|
|
35
|
+
value: z.nullable(z.string()).optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function valueSlotEntryFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<ValueSlotEntry, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => ValueSlotEntry$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'ValueSlotEntry' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ValueSlotEntry,
|
|
11
|
+
ValueSlotEntry$inboundSchema,
|
|
12
|
+
} from "./valueslotentry.js";
|
|
13
|
+
|
|
14
|
+
export type ValueSlotsResponse = {
|
|
15
|
+
slots: Array<ValueSlotEntry>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ValueSlotsResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ValueSlotsResponse,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
slots: z.array(ValueSlotEntry$inboundSchema),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function valueSlotsResponseFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<ValueSlotsResponse, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => ValueSlotsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'ValueSlotsResponse' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type VerifyResult = {
|
|
11
|
+
match: boolean;
|
|
12
|
+
slot: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const VerifyResult$inboundSchema: z.ZodType<VerifyResult, unknown> = z
|
|
17
|
+
.object({
|
|
18
|
+
match: z.boolean(),
|
|
19
|
+
slot: z.string(),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export function verifyResultFromJSON(
|
|
23
|
+
jsonString: string,
|
|
24
|
+
): SafeParseResult<VerifyResult, SDKValidationError> {
|
|
25
|
+
return safeParse(
|
|
26
|
+
jsonString,
|
|
27
|
+
(x) => VerifyResult$inboundSchema.parse(JSON.parse(x)),
|
|
28
|
+
`Failed to parse 'VerifyResult' from JSON`,
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
export type VerifyValue = {
|
|
8
|
+
slot: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type VerifyValue$Outbound = {
|
|
14
|
+
slot: string;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const VerifyValue$outboundSchema: z.ZodType<
|
|
20
|
+
VerifyValue$Outbound,
|
|
21
|
+
VerifyValue
|
|
22
|
+
> = z.object({
|
|
23
|
+
slot: z.string(),
|
|
24
|
+
value: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function verifyValueToJSON(verifyValue: VerifyValue): string {
|
|
28
|
+
return JSON.stringify(VerifyValue$outboundSchema.parse(verifyValue));
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
VerifyValue,
|
|
8
|
+
VerifyValue$Outbound,
|
|
9
|
+
VerifyValue$outboundSchema,
|
|
10
|
+
} from "./verifyvalue.js";
|
|
11
|
+
|
|
12
|
+
export type VerifyValuesRequest = {
|
|
13
|
+
values: Array<VerifyValue>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type VerifyValuesRequest$Outbound = {
|
|
18
|
+
values: Array<VerifyValue$Outbound>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const VerifyValuesRequest$outboundSchema: z.ZodType<
|
|
23
|
+
VerifyValuesRequest$Outbound,
|
|
24
|
+
VerifyValuesRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
values: z.array(VerifyValue$outboundSchema),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function verifyValuesRequestToJSON(
|
|
30
|
+
verifyValuesRequest: VerifyValuesRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
VerifyValuesRequest$outboundSchema.parse(verifyValuesRequest),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import { VerifyResult, VerifyResult$inboundSchema } from "./verifyresult.js";
|
|
10
|
+
|
|
11
|
+
export type VerifyValuesResponse = {
|
|
12
|
+
results: Array<VerifyResult>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const VerifyValuesResponse$inboundSchema: z.ZodType<
|
|
17
|
+
VerifyValuesResponse,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
results: z.array(VerifyResult$inboundSchema),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function verifyValuesResponseFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<VerifyValuesResponse, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => VerifyValuesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'VerifyValuesResponse' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|