@truvity/sdk 0.37.0 → 0.37.2
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/api/resources/apiKeys/client/Client.d.ts.map +1 -1
- package/api/resources/apiKeys/client/Client.js +9 -19
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +12 -28
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/desk/client/Client.d.ts.map +1 -1
- package/api/resources/desk/client/Client.js +2 -4
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +9 -19
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/dids/client/Client.d.ts.map +1 -1
- package/api/resources/dids/client/Client.js +1 -3
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +0 -49
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +12 -191
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/index.d.ts +0 -1
- package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/index.js.map +1 -1
- package/api/resources/drafts/types/index.d.ts +0 -1
- package/api/resources/drafts/types/index.d.ts.map +1 -1
- package/api/resources/drafts/types/index.js +0 -1
- package/api/resources/drafts/types/index.js.map +1 -1
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +11 -25
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/gdpr/client/Client.js +1 -1
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/keys/client/Client.d.ts.map +1 -1
- package/api/resources/keys/client/Client.js +13 -23
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +14 -30
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/documents/credential/draft/draft.d.ts.map +1 -1
- package/documents/credential/draft/draft.js +1 -1
- package/documents/credential/draft/draft.js.map +1 -1
- package/package.json +4 -3
- package/reference.md +0 -105
- package/scripts/rename-to-esm-files.js +10 -2
- package/serialization/resources/drafts/client/requests/index.d.ts +0 -1
- package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/index.js +1 -3
- package/serialization/resources/drafts/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/types/index.d.ts +0 -1
- package/serialization/resources/drafts/types/index.d.ts.map +1 -1
- package/serialization/resources/drafts/types/index.js +0 -1
- package/serialization/resources/drafts/types/index.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -44
- package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftIssueRequest.js +0 -6
- package/api/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -12
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -11
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts +0 -20
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.js +0 -51
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.js.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +0 -11
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js +0 -42
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../src/documents/credential/draft/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,qBAAa,eAAe;IAEpB,SAAS,CAAC,MAAM,EAAE,SAAS;IAC3B,SAAS,CAAC,SAAS,EAAE,mBAAmB;IACjC,UAAU,EAAE,eAAe;gBAFxB,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,mBAAmB,EACjC,UAAU,EAAE,eAAe;IAGtC,kBAAkB,IAAI,gBAAgB,CAAC,OAAO,CAAC;IAIzC,WAAW,IAAI,OAAO,CAAC,aAAa,CAAC;IASrC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAOvB,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../src/documents/credential/draft/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,qBAAa,eAAe;IAEpB,SAAS,CAAC,MAAM,EAAE,SAAS;IAC3B,SAAS,CAAC,SAAS,EAAE,mBAAmB;IACjC,UAAU,EAAE,eAAe;gBAFxB,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,mBAAmB,EACjC,UAAU,EAAE,eAAe;IAGtC,kBAAkB,IAAI,gBAAgB,CAAC,OAAO,CAAC;IAIzC,WAAW,IAAI,OAAO,CAAC,aAAa,CAAC;IASrC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAOvB,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAgB1D,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;CAG7C"}
|
|
@@ -48,7 +48,7 @@ class DraftCredential {
|
|
|
48
48
|
}
|
|
49
49
|
issue(privateKeyId) {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const { id, etag, revision, data } = yield this.client.drafts.
|
|
51
|
+
const { id, etag, revision, data } = yield this.client.drafts.draftLatestIssue(this.descriptor.id, {
|
|
52
52
|
keyId: privateKeyId,
|
|
53
53
|
});
|
|
54
54
|
return new verifiable_1.VerifiableCredential(this.client, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../../../src/documents/credential/draft/draft.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,yDAAsD;AAGtD,yCAAgD;AAChD,yDAAgE;AAChE,uDAAkE;AAClE,2CAA+D;AAE/D,MAAa,eAAe;IACxB,YACc,MAAiB,EACjB,SAA8B,EACjC,UAA2B;QAFxB,WAAM,GAAN,MAAM,CAAW;QACjB,cAAS,GAAT,SAAS,CAAqB;QACjC,eAAU,GAAV,UAAU,CAAiB;IACnC,CAAC;IAEJ,kBAAkB;QACd,OAAO,IAAI,yBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IAEK,WAAW;;YACb,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YAE1D,OAAO;gBACH,OAAO;gBACP,UAAU;aACb,CAAC;QACN,CAAC;KAAA;IAEK,MAAM,CAAC,MAA0B;;YACnC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAChG,CAAC;KAAA;IAEK,MAAM;;YACR,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE;gBACrD,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI;gBAC7B,cAAc,EAAE,IAAA,yBAAW,EAAC,QAAQ,CAAC;aACxC,CAAC,CAAC;QACP,CAAC;KAAA;IAEK,KAAK,CAAC,YAAoB;;YAC5B,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../../../src/documents/credential/draft/draft.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,yDAAsD;AAGtD,yCAAgD;AAChD,yDAAgE;AAChE,uDAAkE;AAClE,2CAA+D;AAE/D,MAAa,eAAe;IACxB,YACc,MAAiB,EACjB,SAA8B,EACjC,UAA2B;QAFxB,WAAM,GAAN,MAAM,CAAW;QACjB,cAAS,GAAT,SAAS,CAAqB;QACjC,eAAU,GAAV,UAAU,CAAiB;IACnC,CAAC;IAEJ,kBAAkB;QACd,OAAO,IAAI,yBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IAEK,WAAW;;YACb,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YAE1D,OAAO;gBACH,OAAO;gBACP,UAAU;aACb,CAAC;QACN,CAAC;KAAA;IAEK,MAAM,CAAC,MAA0B;;YACnC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAChG,CAAC;KAAA;IAEK,MAAM;;YACR,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE;gBACrD,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI;gBAC7B,cAAc,EAAE,IAAA,yBAAW,EAAC,QAAQ,CAAC;aACxC,CAAC,CAAC;QACP,CAAC;KAAA;IAEK,KAAK,CAAC,YAAoB;;YAC5B,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE;gBAC/F,KAAK,EAAE,YAAY;aACtB,CAAC,CAAC;YAEH,OAAO,IAAI,iCAAoB,CAAC,IAAI,CAAC,MAAM,EAAE;gBACzC,EAAE,EAAE,EAAE;gBACN,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,QAAQ;gBAClB,IAAI,EAAE,IAAA,qCAAwB,EAAC,wCAA8B,EAAE;oBAC3D,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,eAAe,EAAE,IAAI,CAAC,eAAe;iBACxC,CAAC;aACL,CAAC,CAAC;QACP,CAAC;KAAA;IAEK,UAAU;;YACZ,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC1F,CAAC;KAAA;CACJ;AAlDD,0CAkDC","sourcesContent":["import { Readable } from 'stream';\n\nimport { ApiClient, DraftDescriptor } from '../../types';\nimport { generateKey } from '../../utils/idempotency';\nimport { DraftExportRequest, ResourceDraft } from '../../../api';\nimport { DraftDataDescriptor, DraftMetadata } from '../types';\nimport { LinkedCredential } from '../../models';\nimport { VerifiableCredential } from '../verifiable/verifiable';\nimport { strictlyConvertToApiType } from '../../utils/converters';\nimport { verifiableCredentialDataSchema } from '../../schemas';\n\nexport class DraftCredential {\n constructor(\n protected client: ApiClient,\n protected draftData: DraftDataDescriptor,\n public descriptor: DraftDescriptor,\n ) {}\n\n toLinkedCredential(): LinkedCredential<unknown> {\n return new LinkedCredential(this.client, `urn:draft:${this.descriptor.id}`);\n }\n\n async getMetaData(): Promise<DraftMetadata> {\n const { subject, validUntil } = this.draftData.meta || {};\n\n return {\n subject,\n validUntil,\n };\n }\n\n async export(params: DraftExportRequest): Promise<Readable> {\n return this.client.drafts.draftExport(this.descriptor.id, this.descriptor.revision, params);\n }\n\n async delete(): Promise<void> {\n await this.client.drafts.draftDelete(this.descriptor.id, {\n ifMatch: this.descriptor.etag,\n idempotencyKey: generateKey('delete'),\n });\n }\n\n async issue(privateKeyId: string): Promise<VerifiableCredential> {\n const { id, etag, revision, data } = await this.client.drafts.draftLatestIssue(this.descriptor.id, {\n keyId: privateKeyId,\n });\n\n return new VerifiableCredential(this.client, {\n id: id,\n etag: etag,\n revision: revision,\n data: strictlyConvertToApiType(verifiableCredentialDataSchema, {\n id: data.id,\n digestMultibase: data.digestMultibase,\n }),\n });\n }\n\n async toResource(): Promise<ResourceDraft> {\n return this.client.drafts.draftRevision(this.descriptor.id, this.descriptor.revision);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truvity/sdk",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"repository": "https://github.com/truvity/sdk-typescript",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"format": "prettier . --cache --write --log-level warn --ignore-path .gitignore --ignore-path .prettierignore",
|
|
9
9
|
"build": "tsc",
|
|
10
10
|
"prepack": "tsc --project tsconfig.sdk.json && cp -rv dist/. .",
|
|
11
|
-
"test": "jest"
|
|
11
|
+
"test": "jest --passWithNoTests"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"form-data": "^4.0.0",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"uuid": "^10.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@jest/globals": "^29.7.0",
|
|
24
25
|
"@types/jest": "^29.5.14",
|
|
25
26
|
"@types/node": "^18.19.70",
|
|
26
27
|
"@types/node-fetch": "^2.6.12",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"jest": "^29.7.0",
|
|
32
33
|
"jest-environment-jsdom": "^29.7.0",
|
|
33
34
|
"prettier": "^3.1.0",
|
|
34
|
-
"ts-jest": "^29.
|
|
35
|
+
"ts-jest": "^29.3.4",
|
|
35
36
|
"ts-loader": "^9.5.1",
|
|
36
37
|
"typescript": "~5.7.2",
|
|
37
38
|
"webpack": "^5.97.1"
|
package/reference.md
CHANGED
|
@@ -3018,111 +3018,6 @@ await client.drafts.draftRevision("id", 1);
|
|
|
3018
3018
|
</dl>
|
|
3019
3019
|
|
|
3020
3020
|
|
|
3021
|
-
</dd>
|
|
3022
|
-
</dl>
|
|
3023
|
-
</details>
|
|
3024
|
-
|
|
3025
|
-
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">draftIssue</a>(id, revision, { ...params }) -> Truvity.ResourceCredential</code></summary>
|
|
3026
|
-
<dl>
|
|
3027
|
-
<dd>
|
|
3028
|
-
|
|
3029
|
-
#### 📝 Description
|
|
3030
|
-
|
|
3031
|
-
<dl>
|
|
3032
|
-
<dd>
|
|
3033
|
-
|
|
3034
|
-
<dl>
|
|
3035
|
-
<dd>
|
|
3036
|
-
|
|
3037
|
-
Deprecated: please use new endpoint [DraftIssue](#tag/drafts/operation/DraftIssueWithoutRevision).This operation issues a Verifiable Credential from a Draft resource. Operational Lifecycle:
|
|
3038
|
-
1) [Exporting](#tag/drafts/operation/DraftExport) Draft.
|
|
3039
|
-
2) [Signing](#tag/keys/operation/CredentialSign) the exported Draft.
|
|
3040
|
-
3) [Importing](#tag/credentials/operation/CredentialImport) the signed Credential.
|
|
3041
|
-
|
|
3042
|
-
Cascade Issuance: If the Draft references other drafts the system automatically builds a dependency graph and issues all required drafts in the correct order.
|
|
3043
|
-
The correct order is a topological order of the dependency graph, where each draft is issued only after all its prerequisite drafts have been issued.
|
|
3044
|
-
|
|
3045
|
-
Strict Mode:
|
|
3046
|
-
- The `strict_mode` option allows clients to control how prerequisite drafts are handled during cascade issuance.
|
|
3047
|
-
- Use `strict_mode` to enforce that only the explicitly specified drafts in `prerequisite_drafts` (with matching ETags) are accepted as prerequisites.
|
|
3048
|
-
- When disabled (default), the system will automatically discover and include all linked drafts as prerequisites, building the full dependency graph for cascade issuance.
|
|
3049
|
-
|
|
3050
|
-
Performance Considerations:
|
|
3051
|
-
- The process may take longer than typical API calls due to:
|
|
3052
|
-
- Building and traversing the dependency graph for cascade issuance, which determines the correct issuance order for all linked drafts.
|
|
3053
|
-
- Fetching and resolving external resources required for generating cryptographic proofs, which may involve network requests.
|
|
3054
|
-
- Generating cryptographic proofs for each credential in the dependency graph.
|
|
3055
|
-
|
|
3056
|
-
Concurrency and Consistency:
|
|
3057
|
-
- If the `If-Match` header is provided, strict version control is enforced. The operation will fail if the ETag does not match the current Draft version.
|
|
3058
|
-
- The endpoint is idempotent with respect to the Draft resource and ETag.
|
|
3059
|
-
|
|
3060
|
-
Recovery:
|
|
3061
|
-
- If the issuance process fails at any stage, the operation can be safely retried. The endpoint is idempotent with respect to the Draft resource and ETag, so repeated calls will not result in duplicate credentials or inconsistent state.
|
|
3062
|
-
</dd>
|
|
3063
|
-
</dl>
|
|
3064
|
-
</dd>
|
|
3065
|
-
</dl>
|
|
3066
|
-
|
|
3067
|
-
#### 🔌 Usage
|
|
3068
|
-
|
|
3069
|
-
<dl>
|
|
3070
|
-
<dd>
|
|
3071
|
-
|
|
3072
|
-
<dl>
|
|
3073
|
-
<dd>
|
|
3074
|
-
|
|
3075
|
-
```typescript
|
|
3076
|
-
await client.drafts.draftIssue("id", 1, {
|
|
3077
|
-
keyId: "key_id"
|
|
3078
|
-
});
|
|
3079
|
-
|
|
3080
|
-
```
|
|
3081
|
-
</dd>
|
|
3082
|
-
</dl>
|
|
3083
|
-
</dd>
|
|
3084
|
-
</dl>
|
|
3085
|
-
|
|
3086
|
-
#### ⚙️ Parameters
|
|
3087
|
-
|
|
3088
|
-
<dl>
|
|
3089
|
-
<dd>
|
|
3090
|
-
|
|
3091
|
-
<dl>
|
|
3092
|
-
<dd>
|
|
3093
|
-
|
|
3094
|
-
**id:** `string` — The ID of the resource.
|
|
3095
|
-
|
|
3096
|
-
</dd>
|
|
3097
|
-
</dl>
|
|
3098
|
-
|
|
3099
|
-
<dl>
|
|
3100
|
-
<dd>
|
|
3101
|
-
|
|
3102
|
-
**revision:** `number` — The revision of the resource.
|
|
3103
|
-
|
|
3104
|
-
</dd>
|
|
3105
|
-
</dl>
|
|
3106
|
-
|
|
3107
|
-
<dl>
|
|
3108
|
-
<dd>
|
|
3109
|
-
|
|
3110
|
-
**request:** `Truvity.DraftIssueRequest`
|
|
3111
|
-
|
|
3112
|
-
</dd>
|
|
3113
|
-
</dl>
|
|
3114
|
-
|
|
3115
|
-
<dl>
|
|
3116
|
-
<dd>
|
|
3117
|
-
|
|
3118
|
-
**requestOptions:** `Drafts.RequestOptions`
|
|
3119
|
-
|
|
3120
|
-
</dd>
|
|
3121
|
-
</dl>
|
|
3122
|
-
</dd>
|
|
3123
|
-
</dl>
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
3021
|
</dd>
|
|
3127
3022
|
</dl>
|
|
3128
3023
|
</details>
|
|
@@ -50,8 +50,16 @@ async function updateFileContents(file) {
|
|
|
50
50
|
let newContent = content;
|
|
51
51
|
// Update each extension type defined in the map
|
|
52
52
|
for (const [oldExt, newExt] of Object.entries(extensionMap)) {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
// Handle static imports/exports
|
|
54
|
+
const staticRegex = new RegExp(`(import|export)(.+from\\s+['"])(\\.\\.?\\/[^'"]+)(\\${oldExt})(['"])`, 'g');
|
|
55
|
+
newContent = newContent.replace(staticRegex, `$1$2$3${newExt}$5`);
|
|
56
|
+
|
|
57
|
+
// Handle dynamic imports (yield import, await import, regular import())
|
|
58
|
+
const dynamicRegex = new RegExp(
|
|
59
|
+
`(yield\\s+import|await\\s+import|import)\\s*\\(\\s*['"](\\.\\.\?\\/[^'"]+)(\\${oldExt})['"]\\s*\\)`,
|
|
60
|
+
'g',
|
|
61
|
+
);
|
|
62
|
+
newContent = newContent.replace(dynamicRegex, `$1("$2${newExt}")`);
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
if (content !== newContent) {
|
|
@@ -5,5 +5,4 @@ export { DraftUpdateAnnotationsRequest } from './DraftUpdateAnnotationsRequest';
|
|
|
5
5
|
export { DraftLatestIssueRequest } from './DraftLatestIssueRequest';
|
|
6
6
|
export { DraftUpdateLabelsRequest } from './DraftUpdateLabelsRequest';
|
|
7
7
|
export { DraftExportRequest } from './DraftExportRequest';
|
|
8
|
-
export { DraftIssueRequest } from './DraftIssueRequest';
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DraftExportRequest = exports.DraftUpdateLabelsRequest = exports.DraftLatestIssueRequest = exports.DraftUpdateAnnotationsRequest = exports.DraftUpdateRequest = exports.DraftSearchRequest = exports.DraftCreateRequest = void 0;
|
|
4
4
|
var DraftCreateRequest_1 = require("./DraftCreateRequest");
|
|
5
5
|
Object.defineProperty(exports, "DraftCreateRequest", { enumerable: true, get: function () { return DraftCreateRequest_1.DraftCreateRequest; } });
|
|
6
6
|
var DraftSearchRequest_1 = require("./DraftSearchRequest");
|
|
@@ -15,6 +15,4 @@ var DraftUpdateLabelsRequest_1 = require("./DraftUpdateLabelsRequest");
|
|
|
15
15
|
Object.defineProperty(exports, "DraftUpdateLabelsRequest", { enumerable: true, get: function () { return DraftUpdateLabelsRequest_1.DraftUpdateLabelsRequest; } });
|
|
16
16
|
var DraftExportRequest_1 = require("./DraftExportRequest");
|
|
17
17
|
Object.defineProperty(exports, "DraftExportRequest", { enumerable: true, get: function () { return DraftExportRequest_1.DraftExportRequest; } });
|
|
18
|
-
var DraftIssueRequest_1 = require("./DraftIssueRequest");
|
|
19
|
-
Object.defineProperty(exports, "DraftIssueRequest", { enumerable: true, get: function () { return DraftIssueRequest_1.DraftIssueRequest; } });
|
|
20
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/index.ts"],"names":[],"mappings":";;;AAAA,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/index.ts"],"names":[],"mappings":";;;AAAA,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA","sourcesContent":["export { DraftCreateRequest } from './DraftCreateRequest';\nexport { DraftSearchRequest } from './DraftSearchRequest';\nexport { DraftUpdateRequest } from './DraftUpdateRequest';\nexport { DraftUpdateAnnotationsRequest } from './DraftUpdateAnnotationsRequest';\nexport { DraftLatestIssueRequest } from './DraftLatestIssueRequest';\nexport { DraftUpdateLabelsRequest } from './DraftUpdateLabelsRequest';\nexport { DraftExportRequest } from './DraftExportRequest';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./DraftLatestIssueRequestDidMethod"), exports);
|
|
18
|
-
__exportStar(require("./DraftIssueRequestDidMethod"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD","sourcesContent":["export * from './DraftLatestIssueRequestDidMethod';\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Truvity from '../../../../index';
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* keyId: "key_id"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface DraftIssueRequest {
|
|
12
|
-
/**
|
|
13
|
-
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
14
|
-
* The **If-Match** header field is used to declare a list of identifiers that
|
|
15
|
-
* are required to match the current resource version identifier in at least
|
|
16
|
-
* one position as a pre-condition for executing the request on the server
|
|
17
|
-
* side. This behavior is used to validate and reject optimistic updates, by
|
|
18
|
-
* checking if the resource version a consumer has based his changes on is
|
|
19
|
-
* outdated on arrival of the change request to prevent lost updates.
|
|
20
|
-
*
|
|
21
|
-
* If the pre-condition fails the server will respond with status code **412**
|
|
22
|
-
* (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
|
|
23
|
-
* well as [API Guideline Rule #182][api-182] for further details.
|
|
24
|
-
*
|
|
25
|
-
* [rfc-9110-13.1.1]: <https://tools.ietf.org/html/rfc9110#section-13.1.1>
|
|
26
|
-
* [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
|
|
27
|
-
*/
|
|
28
|
-
ifMatch?: string;
|
|
29
|
-
/** The DID method to use for the issuer DID. */
|
|
30
|
-
didMethod?: Truvity.DraftIssueRequestDidMethod;
|
|
31
|
-
/** The URI of the credential issuer. */
|
|
32
|
-
issuer?: string;
|
|
33
|
-
/** The ID of the key to sign the credential. */
|
|
34
|
-
keyId: string;
|
|
35
|
-
/** Map of draft URNs to their associated eTags for validation */
|
|
36
|
-
prerequisiteDrafts?: Record<string, string>;
|
|
37
|
-
/** When enabled, the user must provide the full list of prerequisite draft IDs, and the system enforces this exact prerequisite graph. When disabled, the system automatically determines the dependency graph. */
|
|
38
|
-
strictMode?: boolean;
|
|
39
|
-
/** The date and time the issued credential is valid from. */
|
|
40
|
-
validFrom?: Date;
|
|
41
|
-
/** The date and time the issued credential is valid until. */
|
|
42
|
-
validUntil?: Date;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=DraftIssueRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/drafts/client/requests/DraftIssueRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC;IAC/C,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,mNAAmN;IACnN,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,IAAI,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/drafts/client/requests/DraftIssueRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as Truvity from '../../../../index';\n\n/**\n * @example\n * {\n * keyId: \"key_id\"\n * }\n */\nexport interface DraftIssueRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: <https://tools.ietf.org/html/rfc9110#section-13.1.1>\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch?: string;\n /** The DID method to use for the issuer DID. */\n didMethod?: Truvity.DraftIssueRequestDidMethod;\n /** The URI of the credential issuer. */\n issuer?: string;\n /** The ID of the key to sign the credential. */\n keyId: string;\n /** Map of draft URNs to their associated eTags for validation */\n prerequisiteDrafts?: Record<string, string>;\n /** When enabled, the user must provide the full list of prerequisite draft IDs, and the system enforces this exact prerequisite graph. When disabled, the system automatically determines the dependency graph. */\n strictMode?: boolean;\n /** The date and time the issued credential is valid from. */\n validFrom?: Date;\n /** The date and time the issued credential is valid until. */\n validUntil?: Date;\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* The DID method to use for the issuer DID.
|
|
6
|
-
*/
|
|
7
|
-
export type DraftIssueRequestDidMethod = 'key' | 'web';
|
|
8
|
-
export declare const DraftIssueRequestDidMethod: {
|
|
9
|
-
readonly Key: "key";
|
|
10
|
-
readonly Web: "web";
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=DraftIssueRequestDidMethod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/drafts/types/DraftIssueRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,KAAK,GAAG,KAAK,CAAC;AACvD,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DraftIssueRequestDidMethod = void 0;
|
|
7
|
-
exports.DraftIssueRequestDidMethod = {
|
|
8
|
-
Key: 'key',
|
|
9
|
-
Web: 'web',
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=DraftIssueRequestDidMethod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/api/resources/drafts/types/DraftIssueRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAMU,QAAA,0BAA0B,GAAG;IACtC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * The DID method to use for the issuer DID.\n */\nexport type DraftIssueRequestDidMethod = 'key' | 'web';\nexport const DraftIssueRequestDidMethod = {\n Key: 'key',\n Web: 'web',\n} as const;\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from '../../../../index';
|
|
5
|
-
import * as Truvity from '../../../../../api/index';
|
|
6
|
-
import * as core from '../../../../../core';
|
|
7
|
-
import { DraftIssueRequestDidMethod } from '../../types/DraftIssueRequestDidMethod';
|
|
8
|
-
export declare const DraftIssueRequest: core.serialization.Schema<serializers.DraftIssueRequest.Raw, Omit<Truvity.DraftIssueRequest, 'ifMatch'>>;
|
|
9
|
-
export declare namespace DraftIssueRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
did_method?: DraftIssueRequestDidMethod.Raw | null;
|
|
12
|
-
issuer?: string | null;
|
|
13
|
-
key_id: string;
|
|
14
|
-
prerequisite_drafts?: Record<string, string> | null;
|
|
15
|
-
strict_mode?: boolean | null;
|
|
16
|
-
valid_from?: string | null;
|
|
17
|
-
valid_until?: string | null;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=DraftIssueRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/DraftIssueRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEpF,eAAO,MAAM,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CACrD,WAAW,CAAC,iBAAiB,CAAC,GAAG,EACjC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAY5C,CAAC;AAEH,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACvC,UAAiB,GAAG;QAChB,UAAU,CAAC,EAAE,0BAA0B,CAAC,GAAG,GAAG,IAAI,CAAC;QACnD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;QACpD,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;CACJ"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DraftIssueRequest = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../../core"));
|
|
41
|
-
const DraftIssueRequestDidMethod_1 = require("../../types/DraftIssueRequestDidMethod");
|
|
42
|
-
exports.DraftIssueRequest = core.serialization.object({
|
|
43
|
-
didMethod: core.serialization.property('did_method', DraftIssueRequestDidMethod_1.DraftIssueRequestDidMethod.optional()),
|
|
44
|
-
issuer: core.serialization.string().optional(),
|
|
45
|
-
keyId: core.serialization.property('key_id', core.serialization.string()),
|
|
46
|
-
prerequisiteDrafts: core.serialization.property('prerequisite_drafts', core.serialization.record(core.serialization.string(), core.serialization.string()).optional()),
|
|
47
|
-
strictMode: core.serialization.property('strict_mode', core.serialization.boolean().optional()),
|
|
48
|
-
validFrom: core.serialization.property('valid_from', core.serialization.date().optional()),
|
|
49
|
-
validUntil: core.serialization.property('valid_until', core.serialization.date().optional()),
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=DraftIssueRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequest.js","sourceRoot":"","sources":["../../../../../../src/serialization/resources/drafts/client/requests/DraftIssueRequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,0DAA4C;AAC5C,uFAAoF;AAEvE,QAAA,iBAAiB,GAG1B,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,YAAY,EAAE,uDAA0B,CAAC,QAAQ,EAAE,CAAC;IAC3F,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;IACzE,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAC3C,qBAAqB,EACrB,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CACjG;IACD,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC;IAC/F,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;IAC1F,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;CAC/F,CAAC,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as serializers from '../../../../index';\nimport * as Truvity from '../../../../../api/index';\nimport * as core from '../../../../../core';\nimport { DraftIssueRequestDidMethod } from '../../types/DraftIssueRequestDidMethod';\n\nexport const DraftIssueRequest: core.serialization.Schema<\n serializers.DraftIssueRequest.Raw,\n Omit<Truvity.DraftIssueRequest, 'ifMatch'>\n> = core.serialization.object({\n didMethod: core.serialization.property('did_method', DraftIssueRequestDidMethod.optional()),\n issuer: core.serialization.string().optional(),\n keyId: core.serialization.property('key_id', core.serialization.string()),\n prerequisiteDrafts: core.serialization.property(\n 'prerequisite_drafts',\n core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),\n ),\n strictMode: core.serialization.property('strict_mode', core.serialization.boolean().optional()),\n validFrom: core.serialization.property('valid_from', core.serialization.date().optional()),\n validUntil: core.serialization.property('valid_until', core.serialization.date().optional()),\n});\n\nexport declare namespace DraftIssueRequest {\n export interface Raw {\n did_method?: DraftIssueRequestDidMethod.Raw | null;\n issuer?: string | null;\n key_id: string;\n prerequisite_drafts?: Record<string, string> | null;\n strict_mode?: boolean | null;\n valid_from?: string | null;\n valid_until?: string | null;\n }\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from '../../../index';
|
|
5
|
-
import * as Truvity from '../../../../api/index';
|
|
6
|
-
import * as core from '../../../../core';
|
|
7
|
-
export declare const DraftIssueRequestDidMethod: core.serialization.Schema<serializers.DraftIssueRequestDidMethod.Raw, Truvity.DraftIssueRequestDidMethod>;
|
|
8
|
-
export declare namespace DraftIssueRequestDidMethod {
|
|
9
|
-
type Raw = 'key' | 'web';
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=DraftIssueRequestDidMethod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequestDidMethod.d.ts","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/DraftIssueRequestDidMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAEzC,eAAO,MAAM,0BAA0B,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CAC9D,WAAW,CAAC,0BAA0B,CAAC,GAAG,EAC1C,OAAO,CAAC,0BAA0B,CACM,CAAC;AAE7C,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAChD,KAAY,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;CACnC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DraftIssueRequestDidMethod = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.DraftIssueRequestDidMethod = core.serialization.enum_(['key', 'web']);
|
|
42
|
-
//# sourceMappingURL=DraftIssueRequestDidMethod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftIssueRequestDidMethod.js","sourceRoot":"","sources":["../../../../../src/serialization/resources/drafts/types/DraftIssueRequestDidMethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,uDAAyC;AAE5B,QAAA,0BAA0B,GAGnC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as serializers from '../../../index';\nimport * as Truvity from '../../../../api/index';\nimport * as core from '../../../../core';\n\nexport const DraftIssueRequestDidMethod: core.serialization.Schema<\n serializers.DraftIssueRequestDidMethod.Raw,\n Truvity.DraftIssueRequestDidMethod\n> = core.serialization.enum_(['key', 'web']);\n\nexport declare namespace DraftIssueRequestDidMethod {\n export type Raw = 'key' | 'web';\n}\n"]}
|