@opsregistry/contracts 0.0.6 → 0.0.8

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.
@@ -3,12 +3,12 @@ export declare const operationCode: "it.identity.token.refresh";
3
3
  export declare const identityTokenRefreshInputSchema: z.ZodObject<{
4
4
  subject: z.ZodOptional<z.ZodObject<{
5
5
  kind: z.ZodEnum<{
6
- user: "user";
7
- serviceAccount: "serviceAccount";
6
+ anonymous: "anonymous";
8
7
  application: "application";
9
8
  integration: "integration";
10
9
  providerAccount: "providerAccount";
11
- anonymous: "anonymous";
10
+ serviceAccount: "serviceAccount";
11
+ user: "user";
12
12
  }>;
13
13
  id: z.ZodOptional<z.ZodString>;
14
14
  externalId: z.ZodOptional<z.ZodString>;
@@ -22,20 +22,20 @@ export declare const identityTokenRefreshInputSchema: z.ZodObject<{
22
22
  }, z.core.$strip>>;
23
23
  refreshCredential: z.ZodObject<{
24
24
  kind: z.ZodEnum<{
25
- custom: "custom";
26
- none: "none";
25
+ accessToken: "accessToken";
27
26
  apiKey: "apiKey";
28
27
  basic: "basic";
28
+ custom: "custom";
29
+ none: "none";
29
30
  refreshToken: "refreshToken";
30
- accessToken: "accessToken";
31
31
  session: "session";
32
32
  }>;
33
33
  transport: z.ZodDefault<z.ZodEnum<{
34
- none: "none";
34
+ body: "body";
35
+ cookie: "cookie";
35
36
  header: "header";
37
+ none: "none";
36
38
  query: "query";
37
- cookie: "cookie";
38
- body: "body";
39
39
  }>>;
40
40
  scheme: z.ZodOptional<z.ZodString>;
41
41
  name: z.ZodOptional<z.ZodString>;
@@ -58,19 +58,19 @@ export declare const identityTokenRefreshInputSchema: z.ZodObject<{
58
58
  export declare const identityTokenRefreshResultSchema: z.ZodObject<{
59
59
  operationCode: z.ZodLiteral<"it.identity.token.refresh">;
60
60
  status: z.ZodEnum<{
61
- failed: "failed";
62
61
  anonymous: "anonymous";
63
62
  authenticated: "authenticated";
64
63
  challengeRequired: "challengeRequired";
64
+ failed: "failed";
65
65
  }>;
66
66
  subject: z.ZodOptional<z.ZodObject<{
67
67
  kind: z.ZodEnum<{
68
- user: "user";
69
- serviceAccount: "serviceAccount";
68
+ anonymous: "anonymous";
70
69
  application: "application";
71
70
  integration: "integration";
72
71
  providerAccount: "providerAccount";
73
- anonymous: "anonymous";
72
+ serviceAccount: "serviceAccount";
73
+ user: "user";
74
74
  }>;
75
75
  id: z.ZodOptional<z.ZodString>;
76
76
  externalId: z.ZodOptional<z.ZodString>;
@@ -83,25 +83,25 @@ export declare const identityTokenRefreshResultSchema: z.ZodObject<{
83
83
  claims: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
84
84
  }, z.core.$strip>>;
85
85
  accessModeUsed: z.ZodEnum<{
86
- public: "public";
87
86
  authorized: "authorized";
87
+ public: "public";
88
88
  }>;
89
89
  credential: z.ZodObject<{
90
90
  kind: z.ZodEnum<{
91
- custom: "custom";
92
- none: "none";
91
+ accessToken: "accessToken";
93
92
  apiKey: "apiKey";
94
93
  basic: "basic";
94
+ custom: "custom";
95
+ none: "none";
95
96
  refreshToken: "refreshToken";
96
- accessToken: "accessToken";
97
97
  session: "session";
98
98
  }>;
99
99
  transport: z.ZodDefault<z.ZodEnum<{
100
- none: "none";
100
+ body: "body";
101
+ cookie: "cookie";
101
102
  header: "header";
103
+ none: "none";
102
104
  query: "query";
103
- cookie: "cookie";
104
- body: "body";
105
105
  }>>;
106
106
  scheme: z.ZodOptional<z.ZodString>;
107
107
  name: z.ZodOptional<z.ZodString>;
@@ -113,20 +113,20 @@ export declare const identityTokenRefreshResultSchema: z.ZodObject<{
113
113
  }, z.core.$strip>;
114
114
  refreshCredential: z.ZodOptional<z.ZodObject<{
115
115
  kind: z.ZodEnum<{
116
- custom: "custom";
117
- none: "none";
116
+ accessToken: "accessToken";
118
117
  apiKey: "apiKey";
119
118
  basic: "basic";
119
+ custom: "custom";
120
+ none: "none";
120
121
  refreshToken: "refreshToken";
121
- accessToken: "accessToken";
122
122
  session: "session";
123
123
  }>;
124
124
  transport: z.ZodDefault<z.ZodEnum<{
125
- none: "none";
125
+ body: "body";
126
+ cookie: "cookie";
126
127
  header: "header";
128
+ none: "none";
127
129
  query: "query";
128
- cookie: "cookie";
129
- body: "body";
130
130
  }>>;
131
131
  scheme: z.ZodOptional<z.ZodString>;
132
132
  name: z.ZodOptional<z.ZodString>;
@@ -1,23 +1,23 @@
1
1
  import { z } from "zod";
2
2
  export declare const operationCode: "it.identity.token.revoke";
3
3
  export declare const tokenRevokeReasonSchema: z.ZodEnum<{
4
- expired: "expired";
5
- logout: "logout";
6
- rotation: "rotation";
4
+ adminAction: "adminAction";
7
5
  compromised: "compromised";
8
6
  disabled: "disabled";
9
- adminAction: "adminAction";
7
+ expired: "expired";
8
+ logout: "logout";
10
9
  other: "other";
10
+ rotation: "rotation";
11
11
  }>;
12
12
  export declare const identityTokenRevokeInputSchema: z.ZodObject<{
13
13
  subject: z.ZodOptional<z.ZodObject<{
14
14
  kind: z.ZodEnum<{
15
- user: "user";
16
- serviceAccount: "serviceAccount";
15
+ anonymous: "anonymous";
17
16
  application: "application";
18
17
  integration: "integration";
19
18
  providerAccount: "providerAccount";
20
- anonymous: "anonymous";
19
+ serviceAccount: "serviceAccount";
20
+ user: "user";
21
21
  }>;
22
22
  id: z.ZodOptional<z.ZodString>;
23
23
  externalId: z.ZodOptional<z.ZodString>;
@@ -31,20 +31,20 @@ export declare const identityTokenRevokeInputSchema: z.ZodObject<{
31
31
  }, z.core.$strip>>;
32
32
  credential: z.ZodObject<{
33
33
  kind: z.ZodEnum<{
34
- custom: "custom";
35
- none: "none";
34
+ accessToken: "accessToken";
36
35
  apiKey: "apiKey";
37
36
  basic: "basic";
37
+ custom: "custom";
38
+ none: "none";
38
39
  refreshToken: "refreshToken";
39
- accessToken: "accessToken";
40
40
  session: "session";
41
41
  }>;
42
42
  transport: z.ZodDefault<z.ZodEnum<{
43
- none: "none";
43
+ body: "body";
44
+ cookie: "cookie";
44
45
  header: "header";
46
+ none: "none";
45
47
  query: "query";
46
- cookie: "cookie";
47
- body: "body";
48
48
  }>>;
49
49
  scheme: z.ZodOptional<z.ZodString>;
50
50
  name: z.ZodOptional<z.ZodString>;
@@ -55,13 +55,13 @@ export declare const identityTokenRevokeInputSchema: z.ZodObject<{
55
55
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
56
  }, z.core.$strip>;
57
57
  reason: z.ZodDefault<z.ZodEnum<{
58
- expired: "expired";
59
- logout: "logout";
60
- rotation: "rotation";
58
+ adminAction: "adminAction";
61
59
  compromised: "compromised";
62
60
  disabled: "disabled";
63
- adminAction: "adminAction";
61
+ expired: "expired";
62
+ logout: "logout";
64
63
  other: "other";
64
+ rotation: "rotation";
65
65
  }>>;
66
66
  context: z.ZodOptional<z.ZodObject<{
67
67
  requestId: z.ZodOptional<z.ZodString>;
@@ -76,13 +76,13 @@ export declare const identityTokenRevokeResultSchema: z.ZodObject<{
76
76
  operationCode: z.ZodLiteral<"it.identity.token.revoke">;
77
77
  revoked: z.ZodBoolean;
78
78
  reason: z.ZodEnum<{
79
- expired: "expired";
80
- logout: "logout";
81
- rotation: "rotation";
79
+ adminAction: "adminAction";
82
80
  compromised: "compromised";
83
81
  disabled: "disabled";
84
- adminAction: "adminAction";
82
+ expired: "expired";
83
+ logout: "logout";
85
84
  other: "other";
85
+ rotation: "rotation";
86
86
  }>;
87
87
  revokedAt: z.ZodOptional<z.ZodString>;
88
88
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.object.deleteFile";
2
+ export declare const operationCode: 'storage.object.deleteFile';
3
3
  export declare const deleteFileInputSchema: z.ZodObject<{
4
4
  bucketRef: z.ZodObject<{
5
5
  bucket: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.object.list";
2
+ export declare const operationCode: 'storage.object.list';
3
3
  export declare const listObjectsOptionsSchema: z.ZodObject<{
4
4
  prefix: z.ZodDefault<z.ZodString>;
5
5
  maxKeys: z.ZodDefault<z.ZodNumber>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.object.uploadFile";
2
+ export declare const operationCode: 'storage.object.uploadFile';
3
3
  export declare const uploadFileOptionsSchema: z.ZodObject<{
4
4
  contentType: z.ZodOptional<z.ZodString>;
5
5
  cacheControl: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.website.delete";
2
+ export declare const operationCode: 'storage.website.delete';
3
3
  export declare const deleteBucketWebsiteInputSchema: z.ZodObject<{
4
4
  bucketRef: z.ZodObject<{
5
5
  bucket: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.website.get";
2
+ export declare const operationCode: 'storage.website.get';
3
3
  export declare const getBucketWebsiteInputSchema: z.ZodObject<{
4
4
  bucketRef: z.ZodObject<{
5
5
  bucket: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const operationCode: "storage.website.put";
2
+ export declare const operationCode: 'storage.website.put';
3
3
  export declare const putBucketWebsiteInputSchema: z.ZodObject<{
4
4
  bucketRef: z.ZodObject<{
5
5
  bucket: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opsregistry/contracts",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Operation specifications and shared schemas for opsregistry.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -125,6 +125,6 @@
125
125
  "zod": "4.4.3"
126
126
  },
127
127
  "devDependencies": {
128
- "typescript": "6.0.3"
128
+ "typescript": "7.0.2"
129
129
  }
130
130
  }