@oxy.so/contracts 5.7.0 → 6.0.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/dist/cjs/accountAccess.js +6 -5
- package/dist/cjs/accountEmail.js +13 -5
- package/dist/cjs/accountGraph.js +10 -9
- package/dist/cjs/accountName.js +3 -2
- package/dist/cjs/agency.js +91 -34
- package/dist/cjs/agentKeys.js +21 -17
- package/dist/cjs/appAssertions.js +14 -13
- package/dist/cjs/applicationRoles.js +19 -12
- package/dist/cjs/civic.js +10 -9
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/client/consoleOnboarding.js +24 -0
- package/dist/cjs/client/index.js +7 -3
- package/dist/cjs/client/safety.js +9 -1
- package/dist/cjs/consoleOnboarding.js +56 -0
- package/dist/cjs/contentClaims.js +23 -14
- package/dist/cjs/deviceDirectory.js +11 -9
- package/dist/cjs/deviceSession.js +27 -25
- package/dist/cjs/email/messages.js +20 -18
- package/dist/cjs/emailAgentContext.js +11 -9
- package/dist/cjs/externalIdentity.js +15 -11
- package/dist/cjs/federationInstanceFetch.js +12 -7
- package/dist/cjs/identity.js +19 -17
- package/dist/cjs/identityLink.js +6 -4
- package/dist/cjs/identityProof.js +6 -4
- package/dist/cjs/inboxPush.js +5 -4
- package/dist/cjs/index.js +16 -6
- package/dist/cjs/inference/accountBilling.js +35 -33
- package/dist/cjs/inference/aliaModelRelease.js +9 -7
- package/dist/cjs/inference/attribution.js +14 -12
- package/dist/cjs/inference/catalogue.js +35 -29
- package/dist/cjs/inference/economics.js +24 -19
- package/dist/cjs/inference/embeddings.js +9 -7
- package/dist/cjs/inference/entitlement.js +17 -15
- package/dist/cjs/inference/errors.js +15 -8
- package/dist/cjs/inference/identifiers.js +33 -21
- package/dist/cjs/inference/inbox.js +37 -35
- package/dist/cjs/inference/modelDocumentation.js +16 -14
- package/dist/cjs/inference/money.js +5 -4
- package/dist/cjs/inference/priceVersion.js +10 -5
- package/dist/cjs/inference/providerConnection.js +21 -14
- package/dist/cjs/inference/realtime.js +88 -47
- package/dist/cjs/inference/request.js +27 -25
- package/dist/cjs/inference/routingPolicy.js +12 -10
- package/dist/cjs/inference/streamEvents.js +22 -16
- package/dist/cjs/inference/usage.js +32 -15
- package/dist/cjs/keyRecovery.js +8 -6
- package/dist/cjs/keyRotation.js +5 -4
- package/dist/cjs/linkedAccounts.js +22 -18
- package/dist/cjs/moderationReputation.js +29 -27
- package/dist/cjs/notifications.js +25 -9
- package/dist/cjs/numberChecks.js +45 -0
- package/dist/cjs/oauth.js +14 -12
- package/dist/cjs/organizations.js +23 -21
- package/dist/cjs/products/access.js +10 -8
- package/dist/cjs/products/billing.js +10 -8
- package/dist/cjs/products/checkout.js +22 -10
- package/dist/cjs/products/plans.js +15 -10
- package/dist/cjs/protocol.js +6 -5
- package/dist/cjs/recommendations.js +27 -19
- package/dist/cjs/reputation.js +15 -13
- package/dist/cjs/safety.js +46 -29
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +42 -24
- package/dist/cjs/stickers.js +19 -15
- package/dist/cjs/stringChecks.js +70 -0
- package/dist/cjs/transparency.js +14 -12
- package/dist/cjs/updates.js +24 -22
- package/dist/cjs/userInvalidation.js +7 -5
- package/dist/cjs/userResponse.js +8 -7
- package/dist/cjs/username.js +7 -6
- package/dist/esm/accountAccess.js +4 -3
- package/dist/esm/accountEmail.js +13 -5
- package/dist/esm/accountGraph.js +8 -7
- package/dist/esm/accountName.js +3 -2
- package/dist/esm/agency.js +90 -33
- package/dist/esm/agentKeys.js +21 -17
- package/dist/esm/appAssertions.js +11 -10
- package/dist/esm/applicationRoles.js +16 -9
- package/dist/esm/civic.js +8 -7
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/client/consoleOnboarding.js +21 -0
- package/dist/esm/client/index.js +2 -1
- package/dist/esm/client/safety.js +8 -0
- package/dist/esm/consoleOnboarding.js +51 -0
- package/dist/esm/contentClaims.js +23 -14
- package/dist/esm/deviceDirectory.js +11 -9
- package/dist/esm/deviceSession.js +27 -25
- package/dist/esm/email/messages.js +18 -16
- package/dist/esm/emailAgentContext.js +11 -9
- package/dist/esm/externalIdentity.js +15 -11
- package/dist/esm/federationInstanceFetch.js +10 -5
- package/dist/esm/identity.js +17 -15
- package/dist/esm/identityLink.js +6 -4
- package/dist/esm/identityProof.js +6 -4
- package/dist/esm/inboxPush.js +3 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/inference/accountBilling.js +33 -31
- package/dist/esm/inference/aliaModelRelease.js +7 -5
- package/dist/esm/inference/attribution.js +14 -12
- package/dist/esm/inference/catalogue.js +33 -27
- package/dist/esm/inference/economics.js +22 -17
- package/dist/esm/inference/embeddings.js +9 -7
- package/dist/esm/inference/entitlement.js +15 -13
- package/dist/esm/inference/errors.js +13 -6
- package/dist/esm/inference/identifiers.js +31 -19
- package/dist/esm/inference/inbox.js +37 -35
- package/dist/esm/inference/modelDocumentation.js +14 -12
- package/dist/esm/inference/money.js +3 -2
- package/dist/esm/inference/priceVersion.js +8 -3
- package/dist/esm/inference/providerConnection.js +19 -12
- package/dist/esm/inference/realtime.js +85 -44
- package/dist/esm/inference/request.js +25 -23
- package/dist/esm/inference/routingPolicy.js +9 -7
- package/dist/esm/inference/streamEvents.js +20 -14
- package/dist/esm/inference/usage.js +30 -13
- package/dist/esm/keyRecovery.js +8 -6
- package/dist/esm/keyRotation.js +5 -4
- package/dist/esm/linkedAccounts.js +20 -16
- package/dist/esm/moderationReputation.js +27 -25
- package/dist/esm/notifications.js +23 -7
- package/dist/esm/numberChecks.js +41 -0
- package/dist/esm/oauth.js +14 -12
- package/dist/esm/organizations.js +23 -21
- package/dist/esm/products/access.js +10 -8
- package/dist/esm/products/billing.js +10 -8
- package/dist/esm/products/checkout.js +22 -10
- package/dist/esm/products/plans.js +15 -10
- package/dist/esm/protocol.js +4 -3
- package/dist/esm/recommendations.js +25 -17
- package/dist/esm/reputation.js +13 -11
- package/dist/esm/safety.js +45 -29
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +42 -24
- package/dist/esm/stickers.js +17 -13
- package/dist/esm/stringChecks.js +63 -0
- package/dist/esm/transparency.js +14 -12
- package/dist/esm/updates.js +22 -20
- package/dist/esm/userInvalidation.js +4 -2
- package/dist/esm/userResponse.js +4 -3
- package/dist/esm/username.js +3 -2
- package/dist/types/accountAccess.d.ts +29 -70
- package/dist/types/accountEmail.d.ts +2 -14
- package/dist/types/accountGraph.d.ts +179 -171
- package/dist/types/accountName.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +20 -93
- package/dist/types/agency.d.ts +528 -2924
- package/dist/types/agentKeys.d.ts +48 -421
- package/dist/types/appAssertions.d.ts +56 -210
- package/dist/types/applicationRoles.d.ts +30 -276
- package/dist/types/avatarCharacter.d.ts +1 -1
- package/dist/types/civic.d.ts +1 -13
- package/dist/types/client/agentKeys.d.ts +18 -18
- package/dist/types/client/appAssertions.d.ts +3 -3
- package/dist/types/client/check.d.ts +13 -13
- package/dist/types/client/consoleOnboarding.d.ts +16 -0
- package/dist/types/client/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- package/dist/types/client/index.d.ts +2 -1
- package/dist/types/client/organizations.d.ts +25 -25
- package/dist/types/client/products.d.ts +33 -33
- package/dist/types/client/recommendations.d.ts +2 -2
- package/dist/types/client/safety.d.ts +53 -45
- package/dist/types/client/sessionStatus.d.ts +4 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +4 -1
- package/dist/types/consoleOnboarding.d.ts +57 -0
- package/dist/types/contentClaims.d.ts +24 -180
- package/dist/types/deviceDirectory.d.ts +109 -1040
- package/dist/types/deviceSession.d.ts +36 -298
- package/dist/types/email/messages.d.ts +212 -1793
- package/dist/types/emailAgentContext.d.ts +10 -194
- package/dist/types/externalIdentity.d.ts +121 -615
- package/dist/types/federationInstanceFetch.d.ts +3 -32
- package/dist/types/identity.d.ts +15 -92
- package/dist/types/identityLink.d.ts +6 -84
- package/dist/types/identityProof.d.ts +5 -17
- package/dist/types/inboxPush.d.ts +1 -9
- package/dist/types/index.d.ts +6 -3
- package/dist/types/inference/accountBilling.d.ts +151 -488
- package/dist/types/inference/aliaModelRelease.d.ts +42 -439
- package/dist/types/inference/attribution.d.ts +75 -104
- package/dist/types/inference/catalogue.d.ts +417 -1599
- package/dist/types/inference/economics.d.ts +69 -276
- package/dist/types/inference/embeddings.d.ts +110 -406
- package/dist/types/inference/entitlement.d.ts +80 -335
- package/dist/types/inference/errors.d.ts +90 -102
- package/dist/types/inference/identifiers.d.ts +12 -4
- package/dist/types/inference/inbox.d.ts +105 -420
- package/dist/types/inference/modelDocumentation.d.ts +201 -1390
- package/dist/types/inference/money.d.ts +65 -32
- package/dist/types/inference/priceVersion.d.ts +53 -120
- package/dist/types/inference/providerConnection.d.ts +253 -710
- package/dist/types/inference/realtime.d.ts +954 -6825
- package/dist/types/inference/request.d.ts +300 -2572
- package/dist/types/inference/routingPolicy.d.ts +95 -503
- package/dist/types/inference/streamEvents.d.ts +253 -721
- package/dist/types/inference/usage.d.ts +317 -950
- package/dist/types/keyRecovery.d.ts +3 -51
- package/dist/types/keyRotation.d.ts +3 -38
- package/dist/types/linkedAccounts.d.ts +50 -236
- package/dist/types/moderationReputation.d.ts +81 -14
- package/dist/types/notifications.d.ts +19 -51
- package/dist/types/numberChecks.d.ts +9 -0
- package/dist/types/oauth.d.ts +101 -809
- package/dist/types/organizations.d.ts +268 -921
- package/dist/types/oxyRecordTypes.d.ts +11 -1
- package/dist/types/products/access.d.ts +125 -775
- package/dist/types/products/billing.d.ts +67 -503
- package/dist/types/products/checkout.d.ts +16 -69
- package/dist/types/products/plans.d.ts +33 -366
- package/dist/types/recommendations.d.ts +76 -389
- package/dist/types/reputation.d.ts +37 -5
- package/dist/types/safety.d.ts +410 -2050
- package/dist/types/serviceToken.d.ts +247 -7
- package/dist/types/sessionRevocation.d.ts +2 -17
- package/dist/types/sessionStatus.d.ts +27 -115
- package/dist/types/signIn.d.ts +53 -553
- package/dist/types/stickers.d.ts +67 -819
- package/dist/types/stringChecks.d.ts +16 -0
- package/dist/types/transparency.d.ts +14 -302
- package/dist/types/updates.d.ts +60 -316
- package/dist/types/userInvalidation.d.ts +4 -13
- package/dist/types/userResponse.d.ts +302 -2400
- package/dist/types/username.d.ts +3 -3
- package/package.json +3 -4
|
@@ -1,11 +1,251 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Omitted means the existing grant; an explicit set only narrows that authority. */
|
|
3
|
-
export declare const serviceTokenScopesSchema: z.
|
|
3
|
+
export declare const serviceTokenScopesSchema: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
|
|
4
4
|
export declare const serviceTokenOptionsSchema: z.ZodObject<{
|
|
5
|
-
scopes: z.ZodOptional<z.
|
|
6
|
-
},
|
|
7
|
-
scopes?: string[] | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
scopes?: string[] | undefined;
|
|
10
|
-
}>;
|
|
5
|
+
scopes: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
|
|
6
|
+
}, z.core.$strict>;
|
|
11
7
|
export type ServiceTokenOptions = z.input<typeof serviceTokenOptionsSchema>;
|
|
8
|
+
/** First-party authority is issued only to an attested, live Oxy workload. */
|
|
9
|
+
export declare const serviceAuthoritySchema: z.ZodEnum<{
|
|
10
|
+
external: "external";
|
|
11
|
+
first_party: "first_party";
|
|
12
|
+
}>;
|
|
13
|
+
export type ServiceAuthority = z.infer<typeof serviceAuthoritySchema>;
|
|
14
|
+
/** No scope list exists in the internal authority variant. */
|
|
15
|
+
export declare const firstPartyServicePrincipalSchema: z.ZodObject<{
|
|
16
|
+
authority: z.ZodLiteral<"first_party">;
|
|
17
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
18
|
+
active: z.ZodLiteral<true>;
|
|
19
|
+
accountId: z.ZodString;
|
|
20
|
+
applicationId: z.ZodString;
|
|
21
|
+
credentialId: z.ZodString;
|
|
22
|
+
environment: z.ZodEnum<{
|
|
23
|
+
development: "development";
|
|
24
|
+
staging: "staging";
|
|
25
|
+
production: "production";
|
|
26
|
+
}>;
|
|
27
|
+
audience: z.ZodString;
|
|
28
|
+
expiresAt: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const externalServicePrincipalSchema: z.ZodObject<{
|
|
31
|
+
authority: z.ZodLiteral<"external">;
|
|
32
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
33
|
+
active: z.ZodLiteral<true>;
|
|
34
|
+
accountId: z.ZodString;
|
|
35
|
+
applicationId: z.ZodString;
|
|
36
|
+
credentialId: z.ZodString;
|
|
37
|
+
environment: z.ZodEnum<{
|
|
38
|
+
development: "development";
|
|
39
|
+
staging: "staging";
|
|
40
|
+
production: "production";
|
|
41
|
+
}>;
|
|
42
|
+
audience: z.ZodString;
|
|
43
|
+
expiresAt: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const servicePrincipalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
authority: z.ZodLiteral<"first_party">;
|
|
47
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
48
|
+
active: z.ZodLiteral<true>;
|
|
49
|
+
accountId: z.ZodString;
|
|
50
|
+
applicationId: z.ZodString;
|
|
51
|
+
credentialId: z.ZodString;
|
|
52
|
+
environment: z.ZodEnum<{
|
|
53
|
+
development: "development";
|
|
54
|
+
staging: "staging";
|
|
55
|
+
production: "production";
|
|
56
|
+
}>;
|
|
57
|
+
audience: z.ZodString;
|
|
58
|
+
expiresAt: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
authority: z.ZodLiteral<"external">;
|
|
61
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
62
|
+
active: z.ZodLiteral<true>;
|
|
63
|
+
accountId: z.ZodString;
|
|
64
|
+
applicationId: z.ZodString;
|
|
65
|
+
credentialId: z.ZodString;
|
|
66
|
+
environment: z.ZodEnum<{
|
|
67
|
+
development: "development";
|
|
68
|
+
staging: "staging";
|
|
69
|
+
production: "production";
|
|
70
|
+
}>;
|
|
71
|
+
audience: z.ZodString;
|
|
72
|
+
expiresAt: z.ZodString;
|
|
73
|
+
}, z.core.$strip>], "authority">;
|
|
74
|
+
export declare const serviceIntrospectionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
75
|
+
active: z.ZodLiteral<false>;
|
|
76
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
authority: z.ZodLiteral<"first_party">;
|
|
78
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
79
|
+
active: z.ZodLiteral<true>;
|
|
80
|
+
accountId: z.ZodString;
|
|
81
|
+
applicationId: z.ZodString;
|
|
82
|
+
credentialId: z.ZodString;
|
|
83
|
+
environment: z.ZodEnum<{
|
|
84
|
+
development: "development";
|
|
85
|
+
staging: "staging";
|
|
86
|
+
production: "production";
|
|
87
|
+
}>;
|
|
88
|
+
audience: z.ZodString;
|
|
89
|
+
expiresAt: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
authority: z.ZodLiteral<"external">;
|
|
92
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
93
|
+
active: z.ZodLiteral<true>;
|
|
94
|
+
accountId: z.ZodString;
|
|
95
|
+
applicationId: z.ZodString;
|
|
96
|
+
credentialId: z.ZodString;
|
|
97
|
+
environment: z.ZodEnum<{
|
|
98
|
+
development: "development";
|
|
99
|
+
staging: "staging";
|
|
100
|
+
production: "production";
|
|
101
|
+
}>;
|
|
102
|
+
audience: z.ZodString;
|
|
103
|
+
expiresAt: z.ZodString;
|
|
104
|
+
}, z.core.$strip>], "authority">]>;
|
|
105
|
+
export type FirstPartyServicePrincipal = z.infer<typeof firstPartyServicePrincipalSchema>;
|
|
106
|
+
export type ServicePrincipal = z.infer<typeof servicePrincipalSchema>;
|
|
107
|
+
export type ServiceIntrospection = z.infer<typeof serviceIntrospectionSchema>;
|
|
108
|
+
export declare const resourcePrincipalSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
109
|
+
authority: z.ZodLiteral<"first_party">;
|
|
110
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
111
|
+
active: z.ZodLiteral<true>;
|
|
112
|
+
accountId: z.ZodString;
|
|
113
|
+
applicationId: z.ZodString;
|
|
114
|
+
credentialId: z.ZodString;
|
|
115
|
+
environment: z.ZodEnum<{
|
|
116
|
+
development: "development";
|
|
117
|
+
staging: "staging";
|
|
118
|
+
production: "production";
|
|
119
|
+
}>;
|
|
120
|
+
audience: z.ZodString;
|
|
121
|
+
expiresAt: z.ZodString;
|
|
122
|
+
kind: z.ZodLiteral<"service">;
|
|
123
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
authority: z.ZodLiteral<"external">;
|
|
126
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
127
|
+
active: z.ZodLiteral<true>;
|
|
128
|
+
accountId: z.ZodString;
|
|
129
|
+
applicationId: z.ZodString;
|
|
130
|
+
credentialId: z.ZodString;
|
|
131
|
+
environment: z.ZodEnum<{
|
|
132
|
+
development: "development";
|
|
133
|
+
staging: "staging";
|
|
134
|
+
production: "production";
|
|
135
|
+
}>;
|
|
136
|
+
audience: z.ZodString;
|
|
137
|
+
expiresAt: z.ZodString;
|
|
138
|
+
kind: z.ZodLiteral<"service">;
|
|
139
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
active: z.ZodLiteral<true>;
|
|
142
|
+
kind: z.ZodLiteral<"key">;
|
|
143
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
144
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
145
|
+
authority: z.ZodLiteral<"external">;
|
|
146
|
+
accountId: z.ZodString;
|
|
147
|
+
applicationId: z.ZodString;
|
|
148
|
+
credentialId: z.ZodString;
|
|
149
|
+
environment: z.ZodEnum<{
|
|
150
|
+
development: "development";
|
|
151
|
+
staging: "staging";
|
|
152
|
+
production: "production";
|
|
153
|
+
}>;
|
|
154
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
authority: z.ZodLiteral<"first_party">;
|
|
157
|
+
applicationId: z.ZodNull;
|
|
158
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
159
|
+
active: z.ZodLiteral<true>;
|
|
160
|
+
kind: z.ZodLiteral<"session">;
|
|
161
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
162
|
+
accountId: z.ZodString;
|
|
163
|
+
requesterAccountId: z.ZodString;
|
|
164
|
+
effectiveAccountId: z.ZodString;
|
|
165
|
+
expiresAt: z.ZodString;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
authority: z.ZodLiteral<"external">;
|
|
168
|
+
applicationId: z.ZodString;
|
|
169
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
170
|
+
active: z.ZodLiteral<true>;
|
|
171
|
+
kind: z.ZodLiteral<"session">;
|
|
172
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
173
|
+
accountId: z.ZodString;
|
|
174
|
+
requesterAccountId: z.ZodString;
|
|
175
|
+
effectiveAccountId: z.ZodString;
|
|
176
|
+
expiresAt: z.ZodString;
|
|
177
|
+
}, z.core.$strip>]>;
|
|
178
|
+
export declare const resourceIntrospectionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
179
|
+
active: z.ZodLiteral<false>;
|
|
180
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
181
|
+
authority: z.ZodLiteral<"first_party">;
|
|
182
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
183
|
+
active: z.ZodLiteral<true>;
|
|
184
|
+
accountId: z.ZodString;
|
|
185
|
+
applicationId: z.ZodString;
|
|
186
|
+
credentialId: z.ZodString;
|
|
187
|
+
environment: z.ZodEnum<{
|
|
188
|
+
development: "development";
|
|
189
|
+
staging: "staging";
|
|
190
|
+
production: "production";
|
|
191
|
+
}>;
|
|
192
|
+
audience: z.ZodString;
|
|
193
|
+
expiresAt: z.ZodString;
|
|
194
|
+
kind: z.ZodLiteral<"service">;
|
|
195
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
+
authority: z.ZodLiteral<"external">;
|
|
198
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
199
|
+
active: z.ZodLiteral<true>;
|
|
200
|
+
accountId: z.ZodString;
|
|
201
|
+
applicationId: z.ZodString;
|
|
202
|
+
credentialId: z.ZodString;
|
|
203
|
+
environment: z.ZodEnum<{
|
|
204
|
+
development: "development";
|
|
205
|
+
staging: "staging";
|
|
206
|
+
production: "production";
|
|
207
|
+
}>;
|
|
208
|
+
audience: z.ZodString;
|
|
209
|
+
expiresAt: z.ZodString;
|
|
210
|
+
kind: z.ZodLiteral<"service">;
|
|
211
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
active: z.ZodLiteral<true>;
|
|
214
|
+
kind: z.ZodLiteral<"key">;
|
|
215
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
216
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
217
|
+
authority: z.ZodLiteral<"external">;
|
|
218
|
+
accountId: z.ZodString;
|
|
219
|
+
applicationId: z.ZodString;
|
|
220
|
+
credentialId: z.ZodString;
|
|
221
|
+
environment: z.ZodEnum<{
|
|
222
|
+
development: "development";
|
|
223
|
+
staging: "staging";
|
|
224
|
+
production: "production";
|
|
225
|
+
}>;
|
|
226
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
authority: z.ZodLiteral<"first_party">;
|
|
229
|
+
applicationId: z.ZodNull;
|
|
230
|
+
scopes: z.ZodOptional<z.ZodNever>;
|
|
231
|
+
active: z.ZodLiteral<true>;
|
|
232
|
+
kind: z.ZodLiteral<"session">;
|
|
233
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
234
|
+
accountId: z.ZodString;
|
|
235
|
+
requesterAccountId: z.ZodString;
|
|
236
|
+
effectiveAccountId: z.ZodString;
|
|
237
|
+
expiresAt: z.ZodString;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
authority: z.ZodLiteral<"external">;
|
|
240
|
+
applicationId: z.ZodString;
|
|
241
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
242
|
+
active: z.ZodLiteral<true>;
|
|
243
|
+
kind: z.ZodLiteral<"session">;
|
|
244
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
245
|
+
accountId: z.ZodString;
|
|
246
|
+
requesterAccountId: z.ZodString;
|
|
247
|
+
effectiveAccountId: z.ZodString;
|
|
248
|
+
expiresAt: z.ZodString;
|
|
249
|
+
}, z.core.$strip>]>]>;
|
|
250
|
+
export type ResourcePrincipal = z.infer<typeof resourcePrincipalSchema>;
|
|
251
|
+
export type ResourceIntrospection = z.infer<typeof resourceIntrospectionSchema>;
|
|
@@ -73,28 +73,13 @@ export declare const OXY_SERVICE_EVENTS_FORBIDDEN = "service_events_forbidden";
|
|
|
73
73
|
* never used for ordering — the event says "ask Oxy again", which is idempotent.
|
|
74
74
|
*/
|
|
75
75
|
export declare const oxySessionRevocationEventSchema: z.ZodObject<{
|
|
76
|
-
/** The session that ended; absent for a revocation of every session of `userId`. */
|
|
77
76
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
78
|
-
/** The account the session (or sessions) spoke as. */
|
|
79
77
|
userId: z.ZodString;
|
|
80
|
-
/** Publisher's epoch-ms timestamp. Diagnostic only. */
|
|
81
78
|
at: z.ZodNumber;
|
|
82
|
-
},
|
|
83
|
-
at: number;
|
|
84
|
-
userId: string;
|
|
85
|
-
sessionId?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
at: number;
|
|
88
|
-
userId: string;
|
|
89
|
-
sessionId?: string | undefined;
|
|
90
|
-
}>;
|
|
79
|
+
}, z.core.$strip>;
|
|
91
80
|
export type OxySessionRevocationEvent = z.infer<typeof oxySessionRevocationEventSchema>;
|
|
92
81
|
/** The heartbeat payload. */
|
|
93
82
|
export declare const oxyServiceEventsHeartbeatSchema: z.ZodObject<{
|
|
94
83
|
at: z.ZodNumber;
|
|
95
|
-
},
|
|
96
|
-
at: number;
|
|
97
|
-
}, {
|
|
98
|
-
at: number;
|
|
99
|
-
}>;
|
|
84
|
+
}, z.core.$strip>;
|
|
100
85
|
export type OxyServiceEventsHeartbeat = z.infer<typeof oxyServiceEventsHeartbeatSchema>;
|
|
@@ -40,7 +40,12 @@ import { z } from 'zod';
|
|
|
40
40
|
* `packages/api/src/models/Application.ts` (`first_party` | `third_party` |
|
|
41
41
|
* `internal` | `system`).
|
|
42
42
|
*/
|
|
43
|
-
export declare const applicationTypeSchema: z.ZodEnum<
|
|
43
|
+
export declare const applicationTypeSchema: z.ZodEnum<{
|
|
44
|
+
system: "system";
|
|
45
|
+
first_party: "first_party";
|
|
46
|
+
internal: "internal";
|
|
47
|
+
third_party: "third_party";
|
|
48
|
+
}>;
|
|
44
49
|
export type ApplicationTypeContract = z.infer<typeof applicationTypeSchema>;
|
|
45
50
|
/**
|
|
46
51
|
* The display-safe public identity of a requesting application, exactly as
|
|
@@ -62,38 +67,17 @@ export declare const publicApplicationSchema: z.ZodObject<{
|
|
|
62
67
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
63
68
|
privacyPolicyUrl: z.ZodOptional<z.ZodString>;
|
|
64
69
|
termsUrl: z.ZodOptional<z.ZodString>;
|
|
65
|
-
type: z.ZodEnum<
|
|
70
|
+
type: z.ZodEnum<{
|
|
71
|
+
system: "system";
|
|
72
|
+
first_party: "first_party";
|
|
73
|
+
internal: "internal";
|
|
74
|
+
third_party: "third_party";
|
|
75
|
+
}>;
|
|
66
76
|
isOfficial: z.ZodBoolean;
|
|
67
77
|
isInternal: z.ZodBoolean;
|
|
68
|
-
scopes: z.ZodArray<z.ZodString
|
|
78
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
69
79
|
developerName: z.ZodOptional<z.ZodString>;
|
|
70
|
-
},
|
|
71
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
72
|
-
name: string;
|
|
73
|
-
id: string;
|
|
74
|
-
scopes: string[];
|
|
75
|
-
isOfficial: boolean;
|
|
76
|
-
isInternal: boolean;
|
|
77
|
-
websiteUrl?: string | undefined;
|
|
78
|
-
description?: string | undefined;
|
|
79
|
-
icon?: string | undefined;
|
|
80
|
-
privacyPolicyUrl?: string | undefined;
|
|
81
|
-
termsUrl?: string | undefined;
|
|
82
|
-
developerName?: string | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
85
|
-
name: string;
|
|
86
|
-
id: string;
|
|
87
|
-
scopes: string[];
|
|
88
|
-
isOfficial: boolean;
|
|
89
|
-
isInternal: boolean;
|
|
90
|
-
websiteUrl?: string | undefined;
|
|
91
|
-
description?: string | undefined;
|
|
92
|
-
icon?: string | undefined;
|
|
93
|
-
privacyPolicyUrl?: string | undefined;
|
|
94
|
-
termsUrl?: string | undefined;
|
|
95
|
-
developerName?: string | undefined;
|
|
96
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
97
81
|
export type PublicApplicationResponse = z.infer<typeof publicApplicationSchema>;
|
|
98
82
|
/**
|
|
99
83
|
* The inner object of `GET /auth/session/status/:sessionToken` (inside the API's
|
|
@@ -134,98 +118,26 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
134
118
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
135
119
|
privacyPolicyUrl: z.ZodOptional<z.ZodString>;
|
|
136
120
|
termsUrl: z.ZodOptional<z.ZodString>;
|
|
137
|
-
type: z.ZodEnum<
|
|
121
|
+
type: z.ZodEnum<{
|
|
122
|
+
system: "system";
|
|
123
|
+
first_party: "first_party";
|
|
124
|
+
internal: "internal";
|
|
125
|
+
third_party: "third_party";
|
|
126
|
+
}>;
|
|
138
127
|
isOfficial: z.ZodBoolean;
|
|
139
128
|
isInternal: z.ZodBoolean;
|
|
140
|
-
scopes: z.ZodArray<z.ZodString
|
|
129
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
141
130
|
developerName: z.ZodOptional<z.ZodString>;
|
|
142
|
-
},
|
|
143
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
144
|
-
name: string;
|
|
145
|
-
id: string;
|
|
146
|
-
scopes: string[];
|
|
147
|
-
isOfficial: boolean;
|
|
148
|
-
isInternal: boolean;
|
|
149
|
-
websiteUrl?: string | undefined;
|
|
150
|
-
description?: string | undefined;
|
|
151
|
-
icon?: string | undefined;
|
|
152
|
-
privacyPolicyUrl?: string | undefined;
|
|
153
|
-
termsUrl?: string | undefined;
|
|
154
|
-
developerName?: string | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
157
|
-
name: string;
|
|
158
|
-
id: string;
|
|
159
|
-
scopes: string[];
|
|
160
|
-
isOfficial: boolean;
|
|
161
|
-
isInternal: boolean;
|
|
162
|
-
websiteUrl?: string | undefined;
|
|
163
|
-
description?: string | undefined;
|
|
164
|
-
icon?: string | undefined;
|
|
165
|
-
privacyPolicyUrl?: string | undefined;
|
|
166
|
-
termsUrl?: string | undefined;
|
|
167
|
-
developerName?: string | undefined;
|
|
168
|
-
}>>>;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
169
132
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
170
133
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
171
134
|
publicKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
135
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
purpose: z.ZodOptional<z.ZodEnum<["device_sign_in", "oauth_authorization"]>>;
|
|
136
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
device_sign_in: "device_sign_in";
|
|
138
|
+
oauth_authorization: "oauth_authorization";
|
|
139
|
+
}>>;
|
|
178
140
|
pushSentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
141
|
openedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
-
},
|
|
181
|
-
status: string;
|
|
182
|
-
expiresAt?: string | undefined;
|
|
183
|
-
purpose?: "device_sign_in" | "oauth_authorization" | undefined;
|
|
184
|
-
sessionId?: string | null | undefined;
|
|
185
|
-
userId?: string | null | undefined;
|
|
186
|
-
publicKey?: string | null | undefined;
|
|
187
|
-
application?: {
|
|
188
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
189
|
-
name: string;
|
|
190
|
-
id: string;
|
|
191
|
-
scopes: string[];
|
|
192
|
-
isOfficial: boolean;
|
|
193
|
-
isInternal: boolean;
|
|
194
|
-
websiteUrl?: string | undefined;
|
|
195
|
-
description?: string | undefined;
|
|
196
|
-
icon?: string | undefined;
|
|
197
|
-
privacyPolicyUrl?: string | undefined;
|
|
198
|
-
termsUrl?: string | undefined;
|
|
199
|
-
developerName?: string | undefined;
|
|
200
|
-
} | null | undefined;
|
|
201
|
-
authorized?: boolean | undefined;
|
|
202
|
-
sessionToken?: string | undefined;
|
|
203
|
-
pushSentAt?: string | null | undefined;
|
|
204
|
-
openedAt?: string | null | undefined;
|
|
205
|
-
}, {
|
|
206
|
-
status: string;
|
|
207
|
-
expiresAt?: string | undefined;
|
|
208
|
-
purpose?: "device_sign_in" | "oauth_authorization" | undefined;
|
|
209
|
-
sessionId?: string | null | undefined;
|
|
210
|
-
userId?: string | null | undefined;
|
|
211
|
-
publicKey?: string | null | undefined;
|
|
212
|
-
application?: {
|
|
213
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
214
|
-
name: string;
|
|
215
|
-
id: string;
|
|
216
|
-
scopes: string[];
|
|
217
|
-
isOfficial: boolean;
|
|
218
|
-
isInternal: boolean;
|
|
219
|
-
websiteUrl?: string | undefined;
|
|
220
|
-
description?: string | undefined;
|
|
221
|
-
icon?: string | undefined;
|
|
222
|
-
privacyPolicyUrl?: string | undefined;
|
|
223
|
-
termsUrl?: string | undefined;
|
|
224
|
-
developerName?: string | undefined;
|
|
225
|
-
} | null | undefined;
|
|
226
|
-
authorized?: boolean | undefined;
|
|
227
|
-
sessionToken?: string | undefined;
|
|
228
|
-
pushSentAt?: string | null | undefined;
|
|
229
|
-
openedAt?: string | null | undefined;
|
|
230
|
-
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
231
143
|
export type SessionStatusResponse = z.infer<typeof sessionStatusSchema>;
|