@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,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"}
@@ -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.5",
3
+ "version": "0.0.7",
4
4
  "description": "Operation specifications and shared schemas for opsregistry.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -91,6 +91,30 @@
91
91
  "./storage/website-delete": {
92
92
  "types": "./dist/storage/website-delete.d.ts",
93
93
  "import": "./dist/storage/website-delete.js"
94
+ },
95
+ "./it/iam-common": {
96
+ "types": "./dist/it/iam-common.d.ts",
97
+ "import": "./dist/it/iam-common.js"
98
+ },
99
+ "./it/identity-authenticate": {
100
+ "types": "./dist/it/identity-authenticate.d.ts",
101
+ "import": "./dist/it/identity-authenticate.js"
102
+ },
103
+ "./it/identity-token-refresh": {
104
+ "types": "./dist/it/identity-token-refresh.d.ts",
105
+ "import": "./dist/it/identity-token-refresh.js"
106
+ },
107
+ "./it/identity-token-revoke": {
108
+ "types": "./dist/it/identity-token-revoke.d.ts",
109
+ "import": "./dist/it/identity-token-revoke.js"
110
+ },
111
+ "./it/access-authorize": {
112
+ "types": "./dist/it/access-authorize.d.ts",
113
+ "import": "./dist/it/access-authorize.js"
114
+ },
115
+ "./it/access-policy-evaluate": {
116
+ "types": "./dist/it/access-policy-evaluate.d.ts",
117
+ "import": "./dist/it/access-policy-evaluate.js"
94
118
  }
95
119
  },
96
120
  "scripts": {
@@ -101,6 +125,6 @@
101
125
  "zod": "4.4.3"
102
126
  },
103
127
  "devDependencies": {
104
- "typescript": "6.0.3"
128
+ "typescript": "7.0.2"
105
129
  }
106
130
  }