@opsregistry/contracts 0.0.4 → 0.0.6

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 (62) hide show
  1. package/README.md +15 -0
  2. package/dist/index.d.ts +10 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +10 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/it/access-authorize.d.ts +58 -0
  7. package/dist/it/access-authorize.d.ts.map +1 -0
  8. package/dist/it/access-authorize.js +23 -0
  9. package/dist/it/access-authorize.js.map +1 -0
  10. package/dist/it/access-policy-evaluate.d.ts +69 -0
  11. package/dist/it/access-policy-evaluate.d.ts.map +1 -0
  12. package/dist/it/access-policy-evaluate.js +27 -0
  13. package/dist/it/access-policy-evaluate.js.map +1 -0
  14. package/dist/it/iam-common.d.ts +127 -0
  15. package/dist/it/iam-common.d.ts.map +1 -0
  16. package/dist/it/iam-common.js +87 -0
  17. package/dist/it/iam-common.js.map +1 -0
  18. package/dist/it/identity-authenticate.d.ts +115 -0
  19. package/dist/it/identity-authenticate.d.ts.map +1 -0
  20. package/dist/it/identity-authenticate.js +29 -0
  21. package/dist/it/identity-authenticate.js.map +1 -0
  22. package/dist/it/identity-token-refresh.d.ts +143 -0
  23. package/dist/it/identity-token-refresh.d.ts.map +1 -0
  24. package/dist/it/identity-token-refresh.js +19 -0
  25. package/dist/it/identity-token-refresh.js.map +1 -0
  26. package/dist/it/identity-token-revoke.d.ts +93 -0
  27. package/dist/it/identity-token-revoke.d.ts.map +1 -0
  28. package/dist/it/identity-token-revoke.js +26 -0
  29. package/dist/it/identity-token-revoke.js.map +1 -0
  30. package/dist/storage/object-upload-file.d.ts +2 -0
  31. package/dist/storage/object-upload-file.d.ts.map +1 -1
  32. package/dist/storage/object-upload-file.js +2 -1
  33. package/dist/storage/object-upload-file.js.map +1 -1
  34. package/dist/storage/website-common.d.ts +52 -0
  35. package/dist/storage/website-common.d.ts.map +1 -0
  36. package/dist/storage/website-common.js +29 -0
  37. package/dist/storage/website-common.js.map +1 -0
  38. package/dist/storage/website-delete.d.ts +22 -0
  39. package/dist/storage/website-delete.d.ts.map +1 -0
  40. package/dist/storage/website-delete.js +12 -0
  41. package/dist/storage/website-delete.js.map +1 -0
  42. package/dist/storage/website-get.d.ts +48 -0
  43. package/dist/storage/website-get.d.ts.map +1 -0
  44. package/dist/storage/website-get.js +13 -0
  45. package/dist/storage/website-get.js.map +1 -0
  46. package/dist/storage/website-put.d.ts +49 -0
  47. package/dist/storage/website-put.d.ts.map +1 -0
  48. package/dist/storage/website-put.js +14 -0
  49. package/dist/storage/website-put.js.map +1 -0
  50. package/package.json +43 -3
  51. package/dist/storage/object-storage-delete-file.d.ts +0 -23
  52. package/dist/storage/object-storage-delete-file.d.ts.map +0 -1
  53. package/dist/storage/object-storage-delete-file.js +0 -13
  54. package/dist/storage/object-storage-delete-file.js.map +0 -1
  55. package/dist/storage/object-storage-list-objects.d.ts +0 -46
  56. package/dist/storage/object-storage-list-objects.d.ts.map +0 -1
  57. package/dist/storage/object-storage-list-objects.js +0 -26
  58. package/dist/storage/object-storage-list-objects.js.map +0 -1
  59. package/dist/storage/object-storage-upload-file.d.ts +0 -35
  60. package/dist/storage/object-storage-upload-file.d.ts.map +0 -1
  61. package/dist/storage/object-storage-upload-file.js +0 -21
  62. package/dist/storage/object-storage-upload-file.js.map +0 -1
@@ -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,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,MAAM,aAAa,GAAG,0BAAmC,CAAC;AAEjE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QAC9C,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,IAAI;KACvC,CAAC;IACF,MAAM,EAAE,gBAAgB;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,mBAAmB,EAAE,yBAAyB,CAAC,OAAO,CAAC,MAAM,CAAC;IAC9D,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,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,CAAC;SACT,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzC,UAAU,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
+ user: "user";
7
+ serviceAccount: "serviceAccount";
8
+ application: "application";
9
+ integration: "integration";
10
+ providerAccount: "providerAccount";
11
+ anonymous: "anonymous";
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
+ custom: "custom";
26
+ none: "none";
27
+ apiKey: "apiKey";
28
+ basic: "basic";
29
+ refreshToken: "refreshToken";
30
+ accessToken: "accessToken";
31
+ session: "session";
32
+ }>;
33
+ transport: z.ZodDefault<z.ZodEnum<{
34
+ none: "none";
35
+ header: "header";
36
+ query: "query";
37
+ cookie: "cookie";
38
+ body: "body";
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
+ failed: "failed";
62
+ anonymous: "anonymous";
63
+ authenticated: "authenticated";
64
+ challengeRequired: "challengeRequired";
65
+ }>;
66
+ subject: z.ZodOptional<z.ZodObject<{
67
+ kind: z.ZodEnum<{
68
+ user: "user";
69
+ serviceAccount: "serviceAccount";
70
+ application: "application";
71
+ integration: "integration";
72
+ providerAccount: "providerAccount";
73
+ anonymous: "anonymous";
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
+ public: "public";
87
+ authorized: "authorized";
88
+ }>;
89
+ credential: z.ZodObject<{
90
+ kind: z.ZodEnum<{
91
+ custom: "custom";
92
+ none: "none";
93
+ apiKey: "apiKey";
94
+ basic: "basic";
95
+ refreshToken: "refreshToken";
96
+ accessToken: "accessToken";
97
+ session: "session";
98
+ }>;
99
+ transport: z.ZodDefault<z.ZodEnum<{
100
+ none: "none";
101
+ header: "header";
102
+ query: "query";
103
+ cookie: "cookie";
104
+ body: "body";
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
+ custom: "custom";
117
+ none: "none";
118
+ apiKey: "apiKey";
119
+ basic: "basic";
120
+ refreshToken: "refreshToken";
121
+ accessToken: "accessToken";
122
+ session: "session";
123
+ }>;
124
+ transport: z.ZodDefault<z.ZodEnum<{
125
+ none: "none";
126
+ header: "header";
127
+ query: "query";
128
+ cookie: "cookie";
129
+ body: "body";
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
+ expired: "expired";
5
+ logout: "logout";
6
+ rotation: "rotation";
7
+ compromised: "compromised";
8
+ disabled: "disabled";
9
+ adminAction: "adminAction";
10
+ other: "other";
11
+ }>;
12
+ export declare const identityTokenRevokeInputSchema: z.ZodObject<{
13
+ subject: z.ZodOptional<z.ZodObject<{
14
+ kind: z.ZodEnum<{
15
+ user: "user";
16
+ serviceAccount: "serviceAccount";
17
+ application: "application";
18
+ integration: "integration";
19
+ providerAccount: "providerAccount";
20
+ anonymous: "anonymous";
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
+ custom: "custom";
35
+ none: "none";
36
+ apiKey: "apiKey";
37
+ basic: "basic";
38
+ refreshToken: "refreshToken";
39
+ accessToken: "accessToken";
40
+ session: "session";
41
+ }>;
42
+ transport: z.ZodDefault<z.ZodEnum<{
43
+ none: "none";
44
+ header: "header";
45
+ query: "query";
46
+ cookie: "cookie";
47
+ body: "body";
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
+ expired: "expired";
59
+ logout: "logout";
60
+ rotation: "rotation";
61
+ compromised: "compromised";
62
+ disabled: "disabled";
63
+ adminAction: "adminAction";
64
+ other: "other";
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
+ expired: "expired";
80
+ logout: "logout";
81
+ rotation: "rotation";
82
+ compromised: "compromised";
83
+ disabled: "disabled";
84
+ adminAction: "adminAction";
85
+ other: "other";
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"}
@@ -0,0 +1,26 @@
1
+ import { z } from "zod";
2
+ import { authContextSchema, credentialMaterialSchema, identitySubjectSchema, } from "./iam-common.js";
3
+ export const operationCode = "it.identity.token.revoke";
4
+ export const tokenRevokeReasonSchema = z.enum([
5
+ "logout",
6
+ "rotation",
7
+ "compromised",
8
+ "disabled",
9
+ "expired",
10
+ "adminAction",
11
+ "other",
12
+ ]);
13
+ export const identityTokenRevokeInputSchema = z.object({
14
+ subject: identitySubjectSchema.optional(),
15
+ credential: credentialMaterialSchema,
16
+ reason: tokenRevokeReasonSchema.default("logout"),
17
+ context: authContextSchema.optional(),
18
+ });
19
+ export const identityTokenRevokeResultSchema = z.object({
20
+ operationCode: z.literal(operationCode),
21
+ revoked: z.boolean(),
22
+ reason: tokenRevokeReasonSchema,
23
+ revokedAt: z.string().min(1).optional(),
24
+ metadata: z.record(z.string(), z.unknown()).default({}),
25
+ });
26
+ //# sourceMappingURL=identity-token-revoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-token-revoke.js","sourceRoot":"","sources":["../../src/it/identity-token-revoke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,MAAM,aAAa,GAAG,0BAAmC,CAAC;AAEjE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,QAAQ;IACR,UAAU;IACV,aAAa;IACb,UAAU;IACV,SAAS;IACT,aAAa;IACb,OAAO;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,wBAAwB;IACpC,MAAM,EAAE,uBAAuB,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjD,OAAO,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,uBAAuB;IAC/B,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"}
@@ -4,6 +4,7 @@ export declare const uploadFileOptionsSchema: z.ZodObject<{
4
4
  contentType: z.ZodOptional<z.ZodString>;
5
5
  cacheControl: z.ZodOptional<z.ZodString>;
6
6
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
+ websiteRedirectLocation: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$strip>;
8
9
  export declare const uploadFileInputSchema: z.ZodObject<{
9
10
  bucketRef: z.ZodObject<{
@@ -22,6 +23,7 @@ export declare const uploadFileInputSchema: z.ZodObject<{
22
23
  contentType: z.ZodOptional<z.ZodString>;
23
24
  cacheControl: z.ZodOptional<z.ZodString>;
24
25
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
+ websiteRedirectLocation: z.ZodOptional<z.ZodString>;
25
27
  }, z.core.$strip>>;
26
28
  }, z.core.$strip>;
27
29
  export declare const uploadFileResultSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"object-upload-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,2BAAoC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"object-upload-file.d.ts","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,2BAAoC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -4,7 +4,8 @@ export const operationCode = 'storage.object.uploadFile';
4
4
  export const uploadFileOptionsSchema = z.object({
5
5
  contentType: z.string().optional(),
6
6
  cacheControl: z.string().optional(),
7
- metadata: z.record(z.string(), z.string()).optional()
7
+ metadata: z.record(z.string(), z.string()).optional(),
8
+ websiteRedirectLocation: z.string().min(1).optional()
8
9
  });
9
10
  export const uploadFileInputSchema = z.object({
10
11
  bucketRef: s3BucketRefSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"object-upload-file.js","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,2BAAoC,CAAC;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
1
+ {"version":3,"file":"object-upload-file.js","sourceRoot":"","sources":["../../src/storage/object-upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,2BAAoC,CAAC;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ export declare const storageWebsiteProtocolSchema: z.ZodEnum<{
3
+ http: "http";
4
+ https: "https";
5
+ }>;
6
+ export declare const storageWebsiteRedirectRuleSchema: z.ZodObject<{
7
+ condition: z.ZodOptional<z.ZodObject<{
8
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
9
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>>;
11
+ redirect: z.ZodObject<{
12
+ hostName: z.ZodOptional<z.ZodString>;
13
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
14
+ protocol: z.ZodOptional<z.ZodEnum<{
15
+ http: "http";
16
+ https: "https";
17
+ }>>;
18
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
19
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
22
+ export declare const storageWebsiteConfigurationSchema: z.ZodObject<{
23
+ indexDocument: z.ZodOptional<z.ZodString>;
24
+ errorDocument: z.ZodOptional<z.ZodString>;
25
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
26
+ hostName: z.ZodString;
27
+ protocol: z.ZodOptional<z.ZodEnum<{
28
+ http: "http";
29
+ https: "https";
30
+ }>>;
31
+ }, z.core.$strip>>;
32
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
+ condition: z.ZodOptional<z.ZodObject<{
34
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
35
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ redirect: z.ZodObject<{
38
+ hostName: z.ZodOptional<z.ZodString>;
39
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
40
+ protocol: z.ZodOptional<z.ZodEnum<{
41
+ http: "http";
42
+ https: "https";
43
+ }>>;
44
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
45
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strip>>>;
48
+ }, z.core.$strip>;
49
+ export type StorageWebsiteProtocol = z.infer<typeof storageWebsiteProtocolSchema>;
50
+ export type StorageWebsiteRedirectRule = z.infer<typeof storageWebsiteRedirectRuleSchema>;
51
+ export type StorageWebsiteConfiguration = z.infer<typeof storageWebsiteConfigurationSchema>;
52
+ //# sourceMappingURL=website-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-common.d.ts","sourceRoot":"","sources":["../../src/storage/website-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B;;;EAA4B,CAAC;AAEtE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;iBAc3C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU5C,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export const storageWebsiteProtocolSchema = z.enum(['http', 'https']);
3
+ export const storageWebsiteRedirectRuleSchema = z.object({
4
+ condition: z
5
+ .object({
6
+ keyPrefixEquals: z.string().optional(),
7
+ httpErrorCodeReturnedEquals: z.string().optional()
8
+ })
9
+ .optional(),
10
+ redirect: z.object({
11
+ hostName: z.string().optional(),
12
+ httpRedirectCode: z.string().optional(),
13
+ protocol: storageWebsiteProtocolSchema.optional(),
14
+ replaceKeyPrefixWith: z.string().optional(),
15
+ replaceKeyWith: z.string().optional()
16
+ })
17
+ });
18
+ export const storageWebsiteConfigurationSchema = z.object({
19
+ indexDocument: z.string().min(1).optional(),
20
+ errorDocument: z.string().min(1).optional(),
21
+ redirectAllRequestsTo: z
22
+ .object({
23
+ hostName: z.string().min(1),
24
+ protocol: storageWebsiteProtocolSchema.optional()
25
+ })
26
+ .optional(),
27
+ routingRules: z.array(storageWebsiteRedirectRuleSchema).default([])
28
+ });
29
+ //# sourceMappingURL=website-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-common.js","sourceRoot":"","sources":["../../src/storage/website-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,CAAC;SACV,MAAM,CAAC;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;SACD,QAAQ,EAAE;IACZ,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACvC,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;QACjD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACrC,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,qBAAqB,EAAE,CAAC;SACtB,MAAM,CAAC;QACP,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;KACjD,CAAC;SACD,QAAQ,EAAE;IACZ,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnE,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.delete";
3
+ export declare const deleteBucketWebsiteInputSchema: z.ZodObject<{
4
+ bucketRef: z.ZodObject<{
5
+ bucket: z.ZodString;
6
+ region: z.ZodString;
7
+ endpointUrl: z.ZodString;
8
+ credentials: z.ZodOptional<z.ZodObject<{
9
+ accessKeyId: z.ZodString;
10
+ secretAccessKey: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ keyPrefix: z.ZodDefault<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
15
+ export declare const deleteBucketWebsiteResultSchema: z.ZodObject<{
16
+ operationCode: z.ZodLiteral<"storage.website.delete">;
17
+ bucket: z.ZodString;
18
+ deleted: z.ZodLiteral<true>;
19
+ }, z.core.$strip>;
20
+ export type DeleteBucketWebsiteInput = z.infer<typeof deleteBucketWebsiteInputSchema>;
21
+ export type DeleteBucketWebsiteResult = z.infer<typeof deleteBucketWebsiteResultSchema>;
22
+ //# sourceMappingURL=website-delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-delete.d.ts","sourceRoot":"","sources":["../../src/storage/website-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,EAAG,wBAAiC,CAAC;AAE/D,eAAO,MAAM,8BAA8B;;;;;;;;;;;iBAEzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { s3BucketRefSchema } from './object-storage-common.js';
3
+ export const operationCode = 'storage.website.delete';
4
+ export const deleteBucketWebsiteInputSchema = z.object({
5
+ bucketRef: s3BucketRefSchema
6
+ });
7
+ export const deleteBucketWebsiteResultSchema = z.object({
8
+ operationCode: z.literal(operationCode),
9
+ bucket: z.string().min(1),
10
+ deleted: z.literal(true)
11
+ });
12
+ //# sourceMappingURL=website-delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-delete.js","sourceRoot":"","sources":["../../src/storage/website-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,wBAAiC,CAAC;AAE/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,iBAAiB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACxB,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.get";
3
+ export declare const getBucketWebsiteInputSchema: z.ZodObject<{
4
+ bucketRef: z.ZodObject<{
5
+ bucket: z.ZodString;
6
+ region: z.ZodString;
7
+ endpointUrl: z.ZodString;
8
+ credentials: z.ZodOptional<z.ZodObject<{
9
+ accessKeyId: z.ZodString;
10
+ secretAccessKey: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ keyPrefix: z.ZodDefault<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
15
+ export declare const getBucketWebsiteResultSchema: z.ZodObject<{
16
+ operationCode: z.ZodLiteral<"storage.website.get">;
17
+ bucket: z.ZodString;
18
+ configuration: z.ZodObject<{
19
+ indexDocument: z.ZodOptional<z.ZodString>;
20
+ errorDocument: z.ZodOptional<z.ZodString>;
21
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
22
+ hostName: z.ZodString;
23
+ protocol: z.ZodOptional<z.ZodEnum<{
24
+ http: "http";
25
+ https: "https";
26
+ }>>;
27
+ }, z.core.$strip>>;
28
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
+ condition: z.ZodOptional<z.ZodObject<{
30
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
31
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ redirect: z.ZodObject<{
34
+ hostName: z.ZodOptional<z.ZodString>;
35
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
36
+ protocol: z.ZodOptional<z.ZodEnum<{
37
+ http: "http";
38
+ https: "https";
39
+ }>>;
40
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
41
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>>>;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>;
46
+ export type GetBucketWebsiteInput = z.infer<typeof getBucketWebsiteInputSchema>;
47
+ export type GetBucketWebsiteResult = z.infer<typeof getBucketWebsiteResultSchema>;
48
+ //# sourceMappingURL=website-get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-get.d.ts","sourceRoot":"","sources":["../../src/storage/website-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,EAAG,qBAA8B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { s3BucketRefSchema } from './object-storage-common.js';
3
+ import { storageWebsiteConfigurationSchema } from './website-common.js';
4
+ export const operationCode = 'storage.website.get';
5
+ export const getBucketWebsiteInputSchema = z.object({
6
+ bucketRef: s3BucketRefSchema
7
+ });
8
+ export const getBucketWebsiteResultSchema = z.object({
9
+ operationCode: z.literal(operationCode),
10
+ bucket: z.string().min(1),
11
+ configuration: storageWebsiteConfigurationSchema
12
+ });
13
+ //# sourceMappingURL=website-get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-get.js","sourceRoot":"","sources":["../../src/storage/website-get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,qBAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,iBAAiB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,aAAa,EAAE,iCAAiC;CAChD,CAAC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ export declare const operationCode: "storage.website.put";
3
+ export declare const putBucketWebsiteInputSchema: z.ZodObject<{
4
+ bucketRef: z.ZodObject<{
5
+ bucket: z.ZodString;
6
+ region: z.ZodString;
7
+ endpointUrl: z.ZodString;
8
+ credentials: z.ZodOptional<z.ZodObject<{
9
+ accessKeyId: z.ZodString;
10
+ secretAccessKey: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ keyPrefix: z.ZodDefault<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ configuration: z.ZodObject<{
15
+ indexDocument: z.ZodOptional<z.ZodString>;
16
+ errorDocument: z.ZodOptional<z.ZodString>;
17
+ redirectAllRequestsTo: z.ZodOptional<z.ZodObject<{
18
+ hostName: z.ZodString;
19
+ protocol: z.ZodOptional<z.ZodEnum<{
20
+ http: "http";
21
+ https: "https";
22
+ }>>;
23
+ }, z.core.$strip>>;
24
+ routingRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
+ condition: z.ZodOptional<z.ZodObject<{
26
+ keyPrefixEquals: z.ZodOptional<z.ZodString>;
27
+ httpErrorCodeReturnedEquals: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ redirect: z.ZodObject<{
30
+ hostName: z.ZodOptional<z.ZodString>;
31
+ httpRedirectCode: z.ZodOptional<z.ZodString>;
32
+ protocol: z.ZodOptional<z.ZodEnum<{
33
+ http: "http";
34
+ https: "https";
35
+ }>>;
36
+ replaceKeyPrefixWith: z.ZodOptional<z.ZodString>;
37
+ replaceKeyWith: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>>>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ export declare const putBucketWebsiteResultSchema: z.ZodObject<{
43
+ operationCode: z.ZodLiteral<"storage.website.put">;
44
+ bucket: z.ZodString;
45
+ routingRules: z.ZodNumber;
46
+ }, z.core.$strip>;
47
+ export type PutBucketWebsiteInput = z.infer<typeof putBucketWebsiteInputSchema>;
48
+ export type PutBucketWebsiteResult = z.infer<typeof putBucketWebsiteResultSchema>;
49
+ //# sourceMappingURL=website-put.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-put.d.ts","sourceRoot":"","sources":["../../src/storage/website-put.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,EAAG,qBAA8B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}