@opsregistry/contracts 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +4 -0
  2. package/dist/delivery/create-shipment.d.ts +2 -2
  3. package/dist/delivery/quote.d.ts +48 -9
  4. package/dist/delivery/quote.d.ts.map +1 -1
  5. package/dist/delivery/quote.js +30 -4
  6. package/dist/delivery/quote.js.map +1 -1
  7. package/dist/finance/cancel-payment.d.ts +25 -25
  8. package/dist/finance/common.d.ts +9 -9
  9. package/dist/finance/create-closing-receipt.d.ts +20 -20
  10. package/dist/finance/create-payment-qr.d.ts +1 -1
  11. package/dist/finance/create-payment.d.ts +27 -27
  12. package/dist/finance/create-receipt.d.ts +20 -20
  13. package/dist/finance/get-payment-status.d.ts +10 -10
  14. package/dist/finance/get-receipt-status.d.ts +3 -3
  15. package/dist/finance/receipt-common.d.ts +49 -49
  16. package/dist/index.d.ts +6 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +6 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/it/access-authorize.d.ts +58 -0
  21. package/dist/it/access-authorize.d.ts.map +1 -0
  22. package/dist/it/access-authorize.js +23 -0
  23. package/dist/it/access-authorize.js.map +1 -0
  24. package/dist/it/access-policy-evaluate.d.ts +69 -0
  25. package/dist/it/access-policy-evaluate.d.ts.map +1 -0
  26. package/dist/it/access-policy-evaluate.js +27 -0
  27. package/dist/it/access-policy-evaluate.js.map +1 -0
  28. package/dist/it/iam-common.d.ts +127 -0
  29. package/dist/it/iam-common.d.ts.map +1 -0
  30. package/dist/it/iam-common.js +87 -0
  31. package/dist/it/iam-common.js.map +1 -0
  32. package/dist/it/identity-authenticate.d.ts +115 -0
  33. package/dist/it/identity-authenticate.d.ts.map +1 -0
  34. package/dist/it/identity-authenticate.js +29 -0
  35. package/dist/it/identity-authenticate.js.map +1 -0
  36. package/dist/it/identity-token-refresh.d.ts +143 -0
  37. package/dist/it/identity-token-refresh.d.ts.map +1 -0
  38. package/dist/it/identity-token-refresh.js +19 -0
  39. package/dist/it/identity-token-refresh.js.map +1 -0
  40. package/dist/it/identity-token-revoke.d.ts +93 -0
  41. package/dist/it/identity-token-revoke.d.ts.map +1 -0
  42. package/dist/it/identity-token-revoke.js +26 -0
  43. package/dist/it/identity-token-revoke.js.map +1 -0
  44. package/dist/storage/object-delete-file.d.ts +1 -1
  45. package/dist/storage/object-list.d.ts +1 -1
  46. package/dist/storage/object-upload-file.d.ts +1 -1
  47. package/dist/storage/website-delete.d.ts +1 -1
  48. package/dist/storage/website-get.d.ts +1 -1
  49. package/dist/storage/website-put.d.ts +1 -1
  50. package/package.json +26 -2
@@ -0,0 +1,127 @@
1
+ import { z } from "zod";
2
+ export declare const accessModeSchema: z.ZodEnum<{
3
+ authorized: "authorized";
4
+ public: "public";
5
+ }>;
6
+ export declare const requestedAccessModeSchema: z.ZodEnum<{
7
+ authorized: "authorized";
8
+ auto: "auto";
9
+ public: "public";
10
+ }>;
11
+ export declare const subjectKindSchema: z.ZodEnum<{
12
+ anonymous: "anonymous";
13
+ application: "application";
14
+ integration: "integration";
15
+ providerAccount: "providerAccount";
16
+ serviceAccount: "serviceAccount";
17
+ user: "user";
18
+ }>;
19
+ export declare const authMethodSchema: z.ZodEnum<{
20
+ apiKey: "apiKey";
21
+ basic: "basic";
22
+ bearerToken: "bearerToken";
23
+ custom: "custom";
24
+ none: "none";
25
+ oauth2ClientCredentials: "oauth2ClientCredentials";
26
+ password: "password";
27
+ refreshToken: "refreshToken";
28
+ sessionCredential: "sessionCredential";
29
+ }>;
30
+ export declare const credentialKindSchema: z.ZodEnum<{
31
+ accessToken: "accessToken";
32
+ apiKey: "apiKey";
33
+ basic: "basic";
34
+ custom: "custom";
35
+ none: "none";
36
+ refreshToken: "refreshToken";
37
+ session: "session";
38
+ }>;
39
+ export declare const credentialTransportSchema: z.ZodEnum<{
40
+ body: "body";
41
+ cookie: "cookie";
42
+ header: "header";
43
+ none: "none";
44
+ query: "query";
45
+ }>;
46
+ export declare const authStatusSchema: z.ZodEnum<{
47
+ anonymous: "anonymous";
48
+ authenticated: "authenticated";
49
+ challengeRequired: "challengeRequired";
50
+ failed: "failed";
51
+ }>;
52
+ export declare const authDecisionSchema: z.ZodEnum<{
53
+ allow: "allow";
54
+ deny: "deny";
55
+ indeterminate: "indeterminate";
56
+ }>;
57
+ export declare const identitySubjectSchema: z.ZodObject<{
58
+ kind: z.ZodEnum<{
59
+ anonymous: "anonymous";
60
+ application: "application";
61
+ integration: "integration";
62
+ providerAccount: "providerAccount";
63
+ serviceAccount: "serviceAccount";
64
+ user: "user";
65
+ }>;
66
+ id: z.ZodOptional<z.ZodString>;
67
+ externalId: z.ZodOptional<z.ZodString>;
68
+ displayName: z.ZodOptional<z.ZodString>;
69
+ tenantId: z.ZodOptional<z.ZodString>;
70
+ providerCode: z.ZodOptional<z.ZodString>;
71
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
72
+ permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
73
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
74
+ claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
+ }, z.core.$strip>;
76
+ export declare const credentialMaterialSchema: z.ZodObject<{
77
+ kind: z.ZodEnum<{
78
+ accessToken: "accessToken";
79
+ apiKey: "apiKey";
80
+ basic: "basic";
81
+ custom: "custom";
82
+ none: "none";
83
+ refreshToken: "refreshToken";
84
+ session: "session";
85
+ }>;
86
+ transport: z.ZodDefault<z.ZodEnum<{
87
+ body: "body";
88
+ cookie: "cookie";
89
+ header: "header";
90
+ none: "none";
91
+ query: "query";
92
+ }>>;
93
+ scheme: z.ZodOptional<z.ZodString>;
94
+ name: z.ZodOptional<z.ZodString>;
95
+ value: z.ZodOptional<z.ZodString>;
96
+ expiresAt: z.ZodOptional<z.ZodString>;
97
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
98
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
99
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
+ }, z.core.$strip>;
101
+ export declare const resourceRefSchema: z.ZodObject<{
102
+ type: z.ZodString;
103
+ id: z.ZodOptional<z.ZodString>;
104
+ operationCode: z.ZodOptional<z.ZodString>;
105
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
106
+ }, z.core.$strip>;
107
+ export declare const authContextSchema: z.ZodObject<{
108
+ requestId: z.ZodOptional<z.ZodString>;
109
+ tenantId: z.ZodOptional<z.ZodString>;
110
+ audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
111
+ ipAddress: z.ZodOptional<z.ZodString>;
112
+ userAgent: z.ZodOptional<z.ZodString>;
113
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
114
+ }, z.core.$strip>;
115
+ export type AccessMode = z.infer<typeof accessModeSchema>;
116
+ export type RequestedAccessMode = z.infer<typeof requestedAccessModeSchema>;
117
+ export type SubjectKind = z.infer<typeof subjectKindSchema>;
118
+ export type AuthMethod = z.infer<typeof authMethodSchema>;
119
+ export type CredentialKind = z.infer<typeof credentialKindSchema>;
120
+ export type CredentialTransport = z.infer<typeof credentialTransportSchema>;
121
+ export type AuthStatus = z.infer<typeof authStatusSchema>;
122
+ export type AuthDecision = z.infer<typeof authDecisionSchema>;
123
+ export type IdentitySubject = z.infer<typeof identitySubjectSchema>;
124
+ export type CredentialMaterial = z.infer<typeof credentialMaterialSchema>;
125
+ export type ResourceRef = z.infer<typeof resourceRefSchema>;
126
+ export type AuthContext = z.infer<typeof authContextSchema>;
127
+ //# sourceMappingURL=iam-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-common.d.ts","sourceRoot":"","sources":["../../src/it/iam-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,M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C;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,87 @@
1
+ import { z } from "zod";
2
+ export const accessModeSchema = z.enum(["public", "authorized"]);
3
+ export const requestedAccessModeSchema = z.enum([
4
+ "auto",
5
+ "public",
6
+ "authorized",
7
+ ]);
8
+ export const subjectKindSchema = z.enum([
9
+ "user",
10
+ "serviceAccount",
11
+ "application",
12
+ "integration",
13
+ "providerAccount",
14
+ "anonymous",
15
+ ]);
16
+ export const authMethodSchema = z.enum([
17
+ "none",
18
+ "password",
19
+ "apiKey",
20
+ "basic",
21
+ "bearerToken",
22
+ "oauth2ClientCredentials",
23
+ "refreshToken",
24
+ "sessionCredential",
25
+ "custom",
26
+ ]);
27
+ export const credentialKindSchema = z.enum([
28
+ "none",
29
+ "accessToken",
30
+ "refreshToken",
31
+ "apiKey",
32
+ "session",
33
+ "basic",
34
+ "custom",
35
+ ]);
36
+ export const credentialTransportSchema = z.enum([
37
+ "header",
38
+ "query",
39
+ "cookie",
40
+ "body",
41
+ "none",
42
+ ]);
43
+ export const authStatusSchema = z.enum([
44
+ "authenticated",
45
+ "anonymous",
46
+ "challengeRequired",
47
+ "failed",
48
+ ]);
49
+ export const authDecisionSchema = z.enum(["allow", "deny", "indeterminate"]);
50
+ export const identitySubjectSchema = z.object({
51
+ kind: subjectKindSchema,
52
+ id: z.string().min(1).optional(),
53
+ externalId: z.string().min(1).optional(),
54
+ displayName: z.string().min(1).optional(),
55
+ tenantId: z.string().min(1).optional(),
56
+ providerCode: z.string().min(1).optional(),
57
+ roles: z.array(z.string().min(1)).default([]),
58
+ permissions: z.array(z.string().min(1)).default([]),
59
+ scopes: z.array(z.string().min(1)).default([]),
60
+ claims: z.record(z.string(), z.unknown()).default({}),
61
+ });
62
+ export const credentialMaterialSchema = z.object({
63
+ kind: credentialKindSchema,
64
+ transport: credentialTransportSchema.default("header"),
65
+ scheme: z.string().min(1).optional(),
66
+ name: z.string().min(1).optional(),
67
+ value: z.string().min(1).optional(),
68
+ expiresAt: z.string().min(1).optional(),
69
+ refreshExpiresAt: z.string().min(1).optional(),
70
+ scopes: z.array(z.string().min(1)).default([]),
71
+ metadata: z.record(z.string(), z.unknown()).default({}),
72
+ });
73
+ export const resourceRefSchema = z.object({
74
+ type: z.string().min(1),
75
+ id: z.string().min(1).optional(),
76
+ operationCode: z.string().min(1).optional(),
77
+ attributes: z.record(z.string(), z.unknown()).default({}),
78
+ });
79
+ export const authContextSchema = z.object({
80
+ requestId: z.string().min(1).optional(),
81
+ tenantId: z.string().min(1).optional(),
82
+ audience: z.array(z.string().min(1)).default([]),
83
+ ipAddress: z.string().min(1).optional(),
84
+ userAgent: z.string().min(1).optional(),
85
+ metadata: z.record(z.string(), z.unknown()).default({}),
86
+ });
87
+ //# sourceMappingURL=iam-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-common.js","sourceRoot":"","sources":["../../src/it/iam-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,MAAM;IACN,QAAQ;IACR,YAAY;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,MAAM;IACN,gBAA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AAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACxD,CAAC,CAAC"}
@@ -0,0 +1,115 @@
1
+ import { z } from "zod";
2
+ export declare const operationCode: "it.identity.authenticate";
3
+ export declare const identityAuthenticateInputSchema: z.ZodObject<{
4
+ subject: z.ZodObject<{
5
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6
+ externalId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7
+ displayName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8
+ tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9
+ providerCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10
+ roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
11
+ permissions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
12
+ scopes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
13
+ claims: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ kind: z.ZodEnum<{
15
+ anonymous: "anonymous";
16
+ application: "application";
17
+ integration: "integration";
18
+ providerAccount: "providerAccount";
19
+ serviceAccount: "serviceAccount";
20
+ user: "user";
21
+ }>;
22
+ }, z.core.$strip>;
23
+ method: z.ZodEnum<{
24
+ apiKey: "apiKey";
25
+ basic: "basic";
26
+ bearerToken: "bearerToken";
27
+ custom: "custom";
28
+ none: "none";
29
+ oauth2ClientCredentials: "oauth2ClientCredentials";
30
+ password: "password";
31
+ refreshToken: "refreshToken";
32
+ sessionCredential: "sessionCredential";
33
+ }>;
34
+ credentials: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
35
+ requestedAccessMode: z.ZodDefault<z.ZodEnum<{
36
+ authorized: "authorized";
37
+ auto: "auto";
38
+ public: "public";
39
+ }>>;
40
+ requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
41
+ context: z.ZodOptional<z.ZodObject<{
42
+ requestId: z.ZodOptional<z.ZodString>;
43
+ tenantId: z.ZodOptional<z.ZodString>;
44
+ audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
45
+ ipAddress: z.ZodOptional<z.ZodString>;
46
+ userAgent: z.ZodOptional<z.ZodString>;
47
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>;
50
+ export declare const identityAuthenticateResultSchema: z.ZodObject<{
51
+ operationCode: z.ZodLiteral<"it.identity.authenticate">;
52
+ status: z.ZodEnum<{
53
+ anonymous: "anonymous";
54
+ authenticated: "authenticated";
55
+ challengeRequired: "challengeRequired";
56
+ failed: "failed";
57
+ }>;
58
+ subject: z.ZodOptional<z.ZodObject<{
59
+ kind: z.ZodEnum<{
60
+ anonymous: "anonymous";
61
+ application: "application";
62
+ integration: "integration";
63
+ providerAccount: "providerAccount";
64
+ serviceAccount: "serviceAccount";
65
+ user: "user";
66
+ }>;
67
+ id: z.ZodOptional<z.ZodString>;
68
+ externalId: z.ZodOptional<z.ZodString>;
69
+ displayName: z.ZodOptional<z.ZodString>;
70
+ tenantId: z.ZodOptional<z.ZodString>;
71
+ providerCode: z.ZodOptional<z.ZodString>;
72
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
73
+ permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
74
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
75
+ claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
+ }, z.core.$strip>>;
77
+ accessModeUsed: z.ZodEnum<{
78
+ authorized: "authorized";
79
+ public: "public";
80
+ }>;
81
+ credential: z.ZodOptional<z.ZodObject<{
82
+ kind: z.ZodEnum<{
83
+ accessToken: "accessToken";
84
+ apiKey: "apiKey";
85
+ basic: "basic";
86
+ custom: "custom";
87
+ none: "none";
88
+ refreshToken: "refreshToken";
89
+ session: "session";
90
+ }>;
91
+ transport: z.ZodDefault<z.ZodEnum<{
92
+ body: "body";
93
+ cookie: "cookie";
94
+ header: "header";
95
+ none: "none";
96
+ query: "query";
97
+ }>>;
98
+ scheme: z.ZodOptional<z.ZodString>;
99
+ name: z.ZodOptional<z.ZodString>;
100
+ value: z.ZodOptional<z.ZodString>;
101
+ expiresAt: z.ZodOptional<z.ZodString>;
102
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
103
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
104
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
105
+ }, z.core.$strip>>;
106
+ challenge: z.ZodOptional<z.ZodObject<{
107
+ type: z.ZodString;
108
+ description: z.ZodOptional<z.ZodString>;
109
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
+ }, z.core.$strip>>;
111
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ }, z.core.$strip>;
113
+ export type IdentityAuthenticateInput = z.infer<typeof identityAuthenticateInputSchema>;
114
+ export type IdentityAuthenticateResult = z.infer<typeof identityAuthenticateResultSchema>;
115
+ //# sourceMappingURL=identity-authenticate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-authenticate.d.ts","sourceRoot":"","sources":["../../src/it/identity-authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa,EAAG,0BAAmC,CAAC;AAEjE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc3C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ import { accessModeSchema, authContextSchema, authMethodSchema, authStatusSchema, credentialMaterialSchema, identitySubjectSchema, requestedAccessModeSchema, } from "./iam-common.js";
3
+ export const operationCode = "it.identity.authenticate";
4
+ export const identityAuthenticateInputSchema = z.object({
5
+ subject: identitySubjectSchema.partial().extend({
6
+ kind: identitySubjectSchema.shape.kind,
7
+ }),
8
+ method: authMethodSchema,
9
+ credentials: z.record(z.string(), z.unknown()).default({}),
10
+ requestedAccessMode: requestedAccessModeSchema.default("auto"),
11
+ requestedScopes: z.array(z.string().min(1)).default([]),
12
+ context: authContextSchema.optional(),
13
+ });
14
+ export const identityAuthenticateResultSchema = z.object({
15
+ operationCode: z.literal(operationCode),
16
+ status: authStatusSchema,
17
+ subject: identitySubjectSchema.optional(),
18
+ accessModeUsed: accessModeSchema,
19
+ credential: credentialMaterialSchema.optional(),
20
+ challenge: z
21
+ .object({
22
+ type: z.string().min(1),
23
+ description: z.string().min(1).optional(),
24
+ parameters: z.record(z.string(), z.unknown()).default({}),
25
+ })
26
+ .optional(),
27
+ metadata: z.record(z.string(), z.unknown()).default({}),
28
+ });
29
+ //# sourceMappingURL=identity-authenticate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-authenticate.js","sourceRoot":"","sources":["../../src/it/identity-authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EAC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EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;KAC1D,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACxD,CAAC,CAAC"}
@@ -0,0 +1,143 @@
1
+ import { z } from "zod";
2
+ export declare const operationCode: "it.identity.token.refresh";
3
+ export declare const identityTokenRefreshInputSchema: z.ZodObject<{
4
+ subject: z.ZodOptional<z.ZodObject<{
5
+ kind: z.ZodEnum<{
6
+ anonymous: "anonymous";
7
+ application: "application";
8
+ integration: "integration";
9
+ providerAccount: "providerAccount";
10
+ serviceAccount: "serviceAccount";
11
+ user: "user";
12
+ }>;
13
+ id: z.ZodOptional<z.ZodString>;
14
+ externalId: z.ZodOptional<z.ZodString>;
15
+ displayName: z.ZodOptional<z.ZodString>;
16
+ tenantId: z.ZodOptional<z.ZodString>;
17
+ providerCode: z.ZodOptional<z.ZodString>;
18
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
19
+ permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
20
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
21
+ claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
+ }, z.core.$strip>>;
23
+ refreshCredential: z.ZodObject<{
24
+ kind: z.ZodEnum<{
25
+ accessToken: "accessToken";
26
+ apiKey: "apiKey";
27
+ basic: "basic";
28
+ custom: "custom";
29
+ none: "none";
30
+ refreshToken: "refreshToken";
31
+ session: "session";
32
+ }>;
33
+ transport: z.ZodDefault<z.ZodEnum<{
34
+ body: "body";
35
+ cookie: "cookie";
36
+ header: "header";
37
+ none: "none";
38
+ query: "query";
39
+ }>>;
40
+ scheme: z.ZodOptional<z.ZodString>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ value: z.ZodOptional<z.ZodString>;
43
+ expiresAt: z.ZodOptional<z.ZodString>;
44
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
45
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
46
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
+ }, z.core.$strip>;
48
+ requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
49
+ context: z.ZodOptional<z.ZodObject<{
50
+ requestId: z.ZodOptional<z.ZodString>;
51
+ tenantId: z.ZodOptional<z.ZodString>;
52
+ audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
53
+ ipAddress: z.ZodOptional<z.ZodString>;
54
+ userAgent: z.ZodOptional<z.ZodString>;
55
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ export declare const identityTokenRefreshResultSchema: z.ZodObject<{
59
+ operationCode: z.ZodLiteral<"it.identity.token.refresh">;
60
+ status: z.ZodEnum<{
61
+ anonymous: "anonymous";
62
+ authenticated: "authenticated";
63
+ challengeRequired: "challengeRequired";
64
+ failed: "failed";
65
+ }>;
66
+ subject: z.ZodOptional<z.ZodObject<{
67
+ kind: z.ZodEnum<{
68
+ anonymous: "anonymous";
69
+ application: "application";
70
+ integration: "integration";
71
+ providerAccount: "providerAccount";
72
+ serviceAccount: "serviceAccount";
73
+ user: "user";
74
+ }>;
75
+ id: z.ZodOptional<z.ZodString>;
76
+ externalId: z.ZodOptional<z.ZodString>;
77
+ displayName: z.ZodOptional<z.ZodString>;
78
+ tenantId: z.ZodOptional<z.ZodString>;
79
+ providerCode: z.ZodOptional<z.ZodString>;
80
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
81
+ permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
82
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
83
+ claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
84
+ }, z.core.$strip>>;
85
+ accessModeUsed: z.ZodEnum<{
86
+ authorized: "authorized";
87
+ public: "public";
88
+ }>;
89
+ credential: z.ZodObject<{
90
+ kind: z.ZodEnum<{
91
+ accessToken: "accessToken";
92
+ apiKey: "apiKey";
93
+ basic: "basic";
94
+ custom: "custom";
95
+ none: "none";
96
+ refreshToken: "refreshToken";
97
+ session: "session";
98
+ }>;
99
+ transport: z.ZodDefault<z.ZodEnum<{
100
+ body: "body";
101
+ cookie: "cookie";
102
+ header: "header";
103
+ none: "none";
104
+ query: "query";
105
+ }>>;
106
+ scheme: z.ZodOptional<z.ZodString>;
107
+ name: z.ZodOptional<z.ZodString>;
108
+ value: z.ZodOptional<z.ZodString>;
109
+ expiresAt: z.ZodOptional<z.ZodString>;
110
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
111
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
112
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
113
+ }, z.core.$strip>;
114
+ refreshCredential: z.ZodOptional<z.ZodObject<{
115
+ kind: z.ZodEnum<{
116
+ accessToken: "accessToken";
117
+ apiKey: "apiKey";
118
+ basic: "basic";
119
+ custom: "custom";
120
+ none: "none";
121
+ refreshToken: "refreshToken";
122
+ session: "session";
123
+ }>;
124
+ transport: z.ZodDefault<z.ZodEnum<{
125
+ body: "body";
126
+ cookie: "cookie";
127
+ header: "header";
128
+ none: "none";
129
+ query: "query";
130
+ }>>;
131
+ scheme: z.ZodOptional<z.ZodString>;
132
+ name: z.ZodOptional<z.ZodString>;
133
+ value: z.ZodOptional<z.ZodString>;
134
+ expiresAt: z.ZodOptional<z.ZodString>;
135
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
136
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
137
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
138
+ }, z.core.$strip>>;
139
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
+ }, z.core.$strip>;
141
+ export type IdentityTokenRefreshInput = z.infer<typeof identityTokenRefreshInputSchema>;
142
+ export type IdentityTokenRefreshResult = z.infer<typeof identityTokenRefreshResultSchema>;
143
+ //# sourceMappingURL=identity-token-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-token-refresh.d.ts","sourceRoot":"","sources":["../../src/it/identity-token-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,aAAa,EAAG,2BAAoC,CAAC;AAElE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ3C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ import { accessModeSchema, authContextSchema, authStatusSchema, credentialMaterialSchema, identitySubjectSchema, } from "./iam-common.js";
3
+ export const operationCode = "it.identity.token.refresh";
4
+ export const identityTokenRefreshInputSchema = z.object({
5
+ subject: identitySubjectSchema.optional(),
6
+ refreshCredential: credentialMaterialSchema,
7
+ requestedScopes: z.array(z.string().min(1)).default([]),
8
+ context: authContextSchema.optional(),
9
+ });
10
+ export const identityTokenRefreshResultSchema = z.object({
11
+ operationCode: z.literal(operationCode),
12
+ status: authStatusSchema,
13
+ subject: identitySubjectSchema.optional(),
14
+ accessModeUsed: accessModeSchema,
15
+ credential: credentialMaterialSchema,
16
+ refreshCredential: credentialMaterialSchema.optional(),
17
+ metadata: z.record(z.string(), z.unknown()).default({}),
18
+ });
19
+ //# sourceMappingURL=identity-token-refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-token-refresh.js","sourceRoot":"","sources":["../../src/it/identity-token-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,MAAM,aAAa,GAAG,2BAAoC,CAAC;AAElE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACzC,iBAAiB,EAAE,wBAAwB;IAC3C,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvD,OAAO,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACzC,cAAc,EAAE,gBAAgB;IAChC,UAAU,EAAE,wBAAwB;IACpC,iBAAiB,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IACtD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACxD,CAAC,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ export declare const operationCode: "it.identity.token.revoke";
3
+ export declare const tokenRevokeReasonSchema: z.ZodEnum<{
4
+ adminAction: "adminAction";
5
+ compromised: "compromised";
6
+ disabled: "disabled";
7
+ expired: "expired";
8
+ logout: "logout";
9
+ other: "other";
10
+ rotation: "rotation";
11
+ }>;
12
+ export declare const identityTokenRevokeInputSchema: z.ZodObject<{
13
+ subject: z.ZodOptional<z.ZodObject<{
14
+ kind: z.ZodEnum<{
15
+ anonymous: "anonymous";
16
+ application: "application";
17
+ integration: "integration";
18
+ providerAccount: "providerAccount";
19
+ serviceAccount: "serviceAccount";
20
+ user: "user";
21
+ }>;
22
+ id: z.ZodOptional<z.ZodString>;
23
+ externalId: z.ZodOptional<z.ZodString>;
24
+ displayName: z.ZodOptional<z.ZodString>;
25
+ tenantId: z.ZodOptional<z.ZodString>;
26
+ providerCode: z.ZodOptional<z.ZodString>;
27
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
+ permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
29
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
+ claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
+ }, z.core.$strip>>;
32
+ credential: z.ZodObject<{
33
+ kind: z.ZodEnum<{
34
+ accessToken: "accessToken";
35
+ apiKey: "apiKey";
36
+ basic: "basic";
37
+ custom: "custom";
38
+ none: "none";
39
+ refreshToken: "refreshToken";
40
+ session: "session";
41
+ }>;
42
+ transport: z.ZodDefault<z.ZodEnum<{
43
+ body: "body";
44
+ cookie: "cookie";
45
+ header: "header";
46
+ none: "none";
47
+ query: "query";
48
+ }>>;
49
+ scheme: z.ZodOptional<z.ZodString>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ value: z.ZodOptional<z.ZodString>;
52
+ expiresAt: z.ZodOptional<z.ZodString>;
53
+ refreshExpiresAt: z.ZodOptional<z.ZodString>;
54
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
55
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ }, z.core.$strip>;
57
+ reason: z.ZodDefault<z.ZodEnum<{
58
+ adminAction: "adminAction";
59
+ compromised: "compromised";
60
+ disabled: "disabled";
61
+ expired: "expired";
62
+ logout: "logout";
63
+ other: "other";
64
+ rotation: "rotation";
65
+ }>>;
66
+ context: z.ZodOptional<z.ZodObject<{
67
+ requestId: z.ZodOptional<z.ZodString>;
68
+ tenantId: z.ZodOptional<z.ZodString>;
69
+ audience: z.ZodDefault<z.ZodArray<z.ZodString>>;
70
+ ipAddress: z.ZodOptional<z.ZodString>;
71
+ userAgent: z.ZodOptional<z.ZodString>;
72
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
75
+ export declare const identityTokenRevokeResultSchema: z.ZodObject<{
76
+ operationCode: z.ZodLiteral<"it.identity.token.revoke">;
77
+ revoked: z.ZodBoolean;
78
+ reason: z.ZodEnum<{
79
+ adminAction: "adminAction";
80
+ compromised: "compromised";
81
+ disabled: "disabled";
82
+ expired: "expired";
83
+ logout: "logout";
84
+ other: "other";
85
+ rotation: "rotation";
86
+ }>;
87
+ revokedAt: z.ZodOptional<z.ZodString>;
88
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ }, z.core.$strip>;
90
+ export type TokenRevokeReason = z.infer<typeof tokenRevokeReasonSchema>;
91
+ export type IdentityTokenRevokeInput = z.infer<typeof identityTokenRevokeInputSchema>;
92
+ export type IdentityTokenRevokeResult = z.infer<typeof identityTokenRevokeResultSchema>;
93
+ //# sourceMappingURL=identity-token-revoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-token-revoke.d.ts","sourceRoot":"","sources":["../../src/it/identity-token-revoke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,aAAa,EAAG,0BAAmC,CAAC;AAEjE,eAAO,MAAM,uBAAuB;;;;;;;;EAQlC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;iBAM1C,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC"}