gdc-sdk-node-ts 2.4.1 → 2.4.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.
@@ -158,7 +158,7 @@ export declare class HttpRuntimeClient implements NodeRuntimeClient {
158
158
  *
159
159
  * Commercial contract:
160
160
  * - the final poll response is expected to mint
161
- * `meta.claims['org.schema.Offer.identifier']`
161
+ * `resource.meta.claims['org.schema.Offer.identifier']`
162
162
  * - callers should then pass that exact value to
163
163
  * `confirmLegalOrganizationOrder(...)`
164
164
  */
@@ -206,9 +206,16 @@ export declare class HttpRuntimeClient implements NodeRuntimeClient {
206
206
  * - this mirrored metadata is transport fallback only; the canonical
207
207
  * activation contract remains `body.vp_token` plus `body.controller.*`
208
208
  *
209
+ * Credential compatibility:
210
+ * - canonical VP: organization + legal-representative + organization-controller VCs
211
+ * - legacy two-VC VP: accepted only when the old representative VC itself
212
+ * carries both `RESPRSN` and matching `hasCredential` key material
213
+ * - a representative VC containing only `ISCO-08|1120` is not controller
214
+ * evidence and will be rejected
215
+ *
209
216
  * Commercial contract:
210
217
  * - legacy `_activate` is still expected to mint
211
- * `meta.claims['org.schema.Offer.identifier']`
218
+ * `resource.meta.claims['org.schema.Offer.identifier']`
212
219
  * - callers should then pass that exact value to
213
220
  * `confirmLegalOrganizationOrder(...)`
214
221
  */
@@ -160,7 +160,7 @@ export class HttpRuntimeClient {
160
160
  *
161
161
  * Commercial contract:
162
162
  * - the final poll response is expected to mint
163
- * `meta.claims['org.schema.Offer.identifier']`
163
+ * `resource.meta.claims['org.schema.Offer.identifier']`
164
164
  * - callers should then pass that exact value to
165
165
  * `confirmLegalOrganizationOrder(...)`
166
166
  */
@@ -246,9 +246,16 @@ export class HttpRuntimeClient {
246
246
  * - this mirrored metadata is transport fallback only; the canonical
247
247
  * activation contract remains `body.vp_token` plus `body.controller.*`
248
248
  *
249
+ * Credential compatibility:
250
+ * - canonical VP: organization + legal-representative + organization-controller VCs
251
+ * - legacy two-VC VP: accepted only when the old representative VC itself
252
+ * carries both `RESPRSN` and matching `hasCredential` key material
253
+ * - a representative VC containing only `ISCO-08|1120` is not controller
254
+ * evidence and will be rejected
255
+ *
249
256
  * Commercial contract:
250
257
  * - legacy `_activate` is still expected to mint
251
- * `meta.claims['org.schema.Offer.identifier']`
258
+ * `resource.meta.claims['org.schema.Offer.identifier']`
252
259
  * - callers should then pass that exact value to
253
260
  * `confirmLegalOrganizationOrder(...)`
254
261
  */
@@ -11,9 +11,15 @@ export declare class HostOnboardingSdk implements HostingControllerFacade {
11
11
  *
12
12
  * Commercial contract:
13
13
  * - this legacy `_activate` facade must return one canonical Offer in
14
- * `meta.claims['org.schema.Offer.identifier']`
14
+ * `resource.meta.claims['org.schema.Offer.identifier']`
15
15
  * - callers are expected to pass that Offer to
16
16
  * `confirmLegalOrganizationOrder(...)`
17
+ *
18
+ * The canonical `vpToken` contains OrganizationCredential,
19
+ * LegalRepresentativeCredential and ServiceControllerCredential. A
20
+ * legacy two-credential token is accepted only when its old representative
21
+ * credential combines `RESPRSN` authority with matching `hasCredential`
22
+ * binding material. `ISCO-08|1120` alone never grants tenant control.
17
23
  */
18
24
  activateOrganizationInGatewayFromIcaProof(hostCtx: HostRouteContext, input: NodeOrganizationActivationInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
19
25
  confirmLegalOrganizationOrder(hostCtx: HostRouteContext, input: LegalOrganizationOrderInput, pollOptions?: PollOptions): Promise<SubmitAndPollResult>;
@@ -14,9 +14,15 @@ export class HostOnboardingSdk {
14
14
  *
15
15
  * Commercial contract:
16
16
  * - this legacy `_activate` facade must return one canonical Offer in
17
- * `meta.claims['org.schema.Offer.identifier']`
17
+ * `resource.meta.claims['org.schema.Offer.identifier']`
18
18
  * - callers are expected to pass that Offer to
19
19
  * `confirmLegalOrganizationOrder(...)`
20
+ *
21
+ * The canonical `vpToken` contains OrganizationCredential,
22
+ * LegalRepresentativeCredential and ServiceControllerCredential. A
23
+ * legacy two-credential token is accepted only when its old representative
24
+ * credential combines `RESPRSN` authority with matching `hasCredential`
25
+ * binding material. `ISCO-08|1120` alone never grants tenant control.
20
26
  */
21
27
  activateOrganizationInGatewayFromIcaProof(hostCtx, input, pollOptions) {
22
28
  assertFacadeCapability(this.capabilities, ActorCapabilities.HostingActivateOrganization, ActorKinds.HostOnboarding, 'activateOrganizationInGatewayFromIcaProof');
@@ -33,12 +33,10 @@ export class OrganizationControllerSdk {
33
33
  * refreshes verification and reissues one controller activation code.
34
34
  */
35
35
  submitLegalOrganizationCredentialReissuance(hostCtx, input, pollOptions) {
36
- const method = this.client.submitLegalOrganizationCredentialReissuance
37
- || this.client.submitLegalOrganizationIssue;
38
- if (!method) {
36
+ if (this.client.submitLegalOrganizationCredentialReissuance) {
39
37
  return requireClientMethod(this.client, 'submitLegalOrganizationCredentialReissuance')(hostCtx, input, pollOptions);
40
38
  }
41
- return method(hostCtx, input, pollOptions);
39
+ return requireClientMethod(this.client, 'submitLegalOrganizationIssue')(hostCtx, input, pollOptions);
42
40
  }
43
41
  /**
44
42
  * @deprecated Use `submitLegalOrganizationCredentialReissuance`.
@@ -43,8 +43,9 @@ export declare const recoverOrganizationControllerWithIssueWithDeps: typeof reco
43
43
  *
44
44
  * Gateway deployments may retain one or more transport/job envelopes around
45
45
  * the terminal batch response. The canonical `Organization/_issue` shape
46
- * carries the serial-number claim in `meta.claims`, alongside (but outside)
47
- * the ICA `vc[]` array. An explicitly typed `License:Issued` entry is accepted
46
+ * carries the serial-number claim in `data[].resource.meta.claims`, while the
47
+ * ICA credential projection remains in sibling `data[].vc[]`. An explicitly
48
+ * typed `License:Issued` entry is accepted
48
49
  * only as a legacy `License/_issue` compatibility fallback. Unrelated
49
50
  * identifiers and ICA credentials are never interpreted as activation
50
51
  * material.
@@ -52,8 +52,9 @@ export const recoverOrganizationControllerWithIssueWithDeps = recoverOrganizatio
52
52
  *
53
53
  * Gateway deployments may retain one or more transport/job envelopes around
54
54
  * the terminal batch response. The canonical `Organization/_issue` shape
55
- * carries the serial-number claim in `meta.claims`, alongside (but outside)
56
- * the ICA `vc[]` array. An explicitly typed `License:Issued` entry is accepted
55
+ * carries the serial-number claim in `data[].resource.meta.claims`, while the
56
+ * ICA credential projection remains in sibling `data[].vc[]`. An explicitly
57
+ * typed `License:Issued` entry is accepted
57
58
  * only as a legacy `License/_issue` compatibility fallback. Unrelated
58
59
  * identifiers and ICA credentials are never interpreted as activation
59
60
  * material.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Next-generation Node runtime package for the GDC SDK family",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Antifraud Services Inc.",
@@ -37,7 +37,7 @@
37
37
  "test:e2e:live-gw:clean": "bash ./scripts/run-live-gw-clean.sh"
38
38
  },
39
39
  "dependencies": {
40
- "gdc-common-utils-ts": "^2.5.1",
40
+ "gdc-common-utils-ts": "2.5.3",
41
41
  "gdc-sdk-core-ts": "~2.3.18"
42
42
  },
43
43
  "devDependencies": {