@clossir-tech/ts-sdk 0.11.2 → 0.11.3

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.
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Get issuer status for organization
13
13
  *
14
14
  * @remarks
15
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
15
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
16
16
  */
17
17
  export declare function organizationsGetOrgsByOrgIdIssuer(client: ClossirCore, security: operations.GetOrgsByOrgIdIssuerSecurity, orgId: string, options?: RequestOptions): APIPromise<Result<operations.GetOrgsByOrgIdIssuerResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=organizations-get-orgs-by-org-id-issuer.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Get issuer status for organization
17
17
  *
18
18
  * @remarks
19
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
19
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
20
20
  */
21
21
  export function organizationsGetOrgsByOrgIdIssuer(client, security, orgId, options) {
22
22
  return new APIPromise($do(client, security, orgId, options));
@@ -93,7 +93,9 @@ async function $do(client, security, orgId, options) {
93
93
  const responseFields = {
94
94
  HttpMeta: { Response: response, Request: req },
95
95
  };
96
- const [result] = await M.match(M.json(200, operations.GetOrgsByOrgIdIssuerResponse$inboundSchema), M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
96
+ const [result] = await M.match(M.json(200, operations.GetOrgsByOrgIdIssuerResponse$inboundSchema), M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
97
+ ctype: "application/problem+json",
98
+ }), M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
97
99
  ctype: "application/problem+json",
98
100
  }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
99
101
  if (!result.ok) {
@@ -1 +1 @@
1
- {"version":3,"file":"organizations-get-orgs-by-org-id-issuer.js","sourceRoot":"","sources":["../../src/funcs/organizations-get-orgs-by-org-id-issuer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAC/C,MAAmB,EACnB,QAAiD,EACjD,KAAa,EAC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,0CAA0C,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACnE,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,EAAE;QAC9D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0.0";
34
- readonly sdkVersion: "0.11.2";
34
+ readonly sdkVersion: "0.11.3";
35
35
  readonly genVersion: "2.916.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.11.3 2.916.4 2.0.0 @clossir-tech/ts-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "2.0.0",
34
- sdkVersion: "0.11.2",
34
+ sdkVersion: "0.11.3",
35
35
  genVersion: "2.916.4",
36
- userAgent: "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.11.3 2.916.4 2.0.0 @clossir-tech/ts-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -8,13 +8,39 @@ export type GetOrgsByOrgIdIssuerSecurity = {
8
8
  export type GetOrgsByOrgIdIssuerRequest = {
9
9
  orgId: string;
10
10
  };
11
+ export type GetOrgsByOrgIdIssuerIssuer = {
12
+ /**
13
+ * Issuer record id.
14
+ */
15
+ id: string;
16
+ /**
17
+ * Issuer display name.
18
+ */
19
+ name: string;
20
+ organizationId: string | null;
21
+ maxKycLevel: number | null;
22
+ canRevokeOthers: boolean | null;
23
+ isActive: boolean | null;
24
+ chainAddresses: {
25
+ [k: string]: string;
26
+ } | null;
27
+ createdAt: string | null;
28
+ updatedAt: string | null;
29
+ };
11
30
  /**
12
31
  * Response
13
32
  */
14
33
  export type GetOrgsByOrgIdIssuerResponse = {
15
34
  registered: boolean;
16
- issuer?: any | null | undefined;
35
+ issuer: GetOrgsByOrgIdIssuerIssuer | null;
36
+ /**
37
+ * Markets the platform operates in.
38
+ */
17
39
  coveredJurisdictions: Array<string>;
40
+ /**
41
+ * Markets covered by this organization's accepted legal opinions — the list asset creation is checked against; empty when none is on file.
42
+ */
43
+ opinionCoveredJurisdictions: Array<string>;
18
44
  };
19
45
  /** @internal */
20
46
  export type GetOrgsByOrgIdIssuerSecurity$Outbound = {
@@ -32,6 +58,9 @@ export type GetOrgsByOrgIdIssuerRequest$Outbound = {
32
58
  export declare const GetOrgsByOrgIdIssuerRequest$outboundSchema: z.ZodMiniType<GetOrgsByOrgIdIssuerRequest$Outbound, GetOrgsByOrgIdIssuerRequest>;
33
59
  export declare function getOrgsByOrgIdIssuerRequestToJSON(getOrgsByOrgIdIssuerRequest: GetOrgsByOrgIdIssuerRequest): string;
34
60
  /** @internal */
61
+ export declare const GetOrgsByOrgIdIssuerIssuer$inboundSchema: z.ZodMiniType<GetOrgsByOrgIdIssuerIssuer, unknown>;
62
+ export declare function getOrgsByOrgIdIssuerIssuerFromJSON(jsonString: string): SafeParseResult<GetOrgsByOrgIdIssuerIssuer, SDKValidationError>;
63
+ /** @internal */
35
64
  export declare const GetOrgsByOrgIdIssuerResponse$inboundSchema: z.ZodMiniType<GetOrgsByOrgIdIssuerResponse, unknown>;
36
65
  export declare function getOrgsByOrgIdIssuerResponseFromJSON(jsonString: string): SafeParseResult<GetOrgsByOrgIdIssuerResponse, SDKValidationError>;
37
66
  //# sourceMappingURL=get-orgs-by-org-id-issuer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-orgs-by-org-id-issuer.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-orgs-by-org-id-issuer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,WAAW,CACrE,qCAAqC,EACrC,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,oCAAoC,EACpC,2BAA2B,CAG3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAYR,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
1
+ {"version":3,"file":"get-orgs-by-org-id-issuer.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-orgs-by-org-id-issuer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM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2B,CAG3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAwBR,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAgBR,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -21,13 +21,40 @@ export function getOrgsByOrgIdIssuerRequestToJSON(getOrgsByOrgIdIssuerRequest) {
21
21
  return JSON.stringify(GetOrgsByOrgIdIssuerRequest$outboundSchema.parse(getOrgsByOrgIdIssuerRequest));
22
22
  }
23
23
  /** @internal */
24
+ export const GetOrgsByOrgIdIssuerIssuer$inboundSchema = z.pipe(z.object({
25
+ id: types.string(),
26
+ name: types.string(),
27
+ organization_id: types.nullable(types.string()),
28
+ max_kyc_level: types.nullable(types.number()),
29
+ can_revoke_others: types.nullable(types.boolean()),
30
+ is_active: types.nullable(types.boolean()),
31
+ chain_addresses: types.nullable(z.record(z.string(), types.string())),
32
+ created_at: types.nullable(types.string()),
33
+ updated_at: types.nullable(types.string()),
34
+ }), z.transform((v) => {
35
+ return remap$(v, {
36
+ "organization_id": "organizationId",
37
+ "max_kyc_level": "maxKycLevel",
38
+ "can_revoke_others": "canRevokeOthers",
39
+ "is_active": "isActive",
40
+ "chain_addresses": "chainAddresses",
41
+ "created_at": "createdAt",
42
+ "updated_at": "updatedAt",
43
+ });
44
+ }));
45
+ export function getOrgsByOrgIdIssuerIssuerFromJSON(jsonString) {
46
+ return safeParse(jsonString, (x) => GetOrgsByOrgIdIssuerIssuer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrgsByOrgIdIssuerIssuer' from JSON`);
47
+ }
48
+ /** @internal */
24
49
  export const GetOrgsByOrgIdIssuerResponse$inboundSchema = z.pipe(z.object({
25
50
  registered: types.boolean(),
26
- issuer: z.optional(z.nullable(z.any())),
51
+ issuer: types.nullable(z.lazy(() => GetOrgsByOrgIdIssuerIssuer$inboundSchema)),
27
52
  covered_jurisdictions: z.array(types.string()),
53
+ opinion_covered_jurisdictions: z.array(types.string()),
28
54
  }), z.transform((v) => {
29
55
  return remap$(v, {
30
56
  "covered_jurisdictions": "coveredJurisdictions",
57
+ "opinion_covered_jurisdictions": "opinionCoveredJurisdictions",
31
58
  });
32
59
  }));
33
60
  export function getOrgsByOrgIdIssuerResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"get-orgs-by-org-id-issuer.js","sourceRoot":"","sources":["../../../src/models/operations/get-orgs-by-org-id-issuer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AA2BnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAGpD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D,EAClD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AAAA,CACH;AAOD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD,EAChD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AAAA,CACH;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,KAAK,CAAC,OAAO,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACvC,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC/C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,sBAAsB;KAChD,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,oCAAoC,CAClD,UAAkB,EACiD;IACnE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AAAA,CACH"}
1
+ {"version":3,"file":"get-orgs-by-org-id-issuer.js","sourceRoot":"","sources":["../../../src/models/operations/get-orgs-by-org-id-issuer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM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KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACvD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,sBAAsB;QAC/C,+BAA+B,EAAE,6BAA6B;KAC/D,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,oCAAoC,CAClD,UAAkB,EACiD;IACnE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AAAA,CACH"}
@@ -14,6 +14,25 @@ export type PostOrgsByOrgIdIssuerRegisterRequest = {
14
14
  orgId: string;
15
15
  body: PostOrgsByOrgIdIssuerRegisterRequestBody;
16
16
  };
17
+ export type PostOrgsByOrgIdIssuerRegisterIssuer = {
18
+ /**
19
+ * Issuer record id.
20
+ */
21
+ id: string;
22
+ /**
23
+ * Issuer display name.
24
+ */
25
+ name: string;
26
+ organizationId: string | null;
27
+ maxKycLevel: number | null;
28
+ canRevokeOthers: boolean | null;
29
+ isActive: boolean | null;
30
+ chainAddresses: {
31
+ [k: string]: string;
32
+ } | null;
33
+ createdAt: string | null;
34
+ updatedAt: string | null;
35
+ };
17
36
  export type Command = {
18
37
  chainEid: number;
19
38
  commandId: string | null;
@@ -23,7 +42,7 @@ export type Command = {
23
42
  */
24
43
  export type PostOrgsByOrgIdIssuerRegisterResponse = {
25
44
  registered: boolean;
26
- issuer?: any | null | undefined;
45
+ issuer: PostOrgsByOrgIdIssuerRegisterIssuer;
27
46
  /**
28
47
  * One entry per chain leg the org has a server wallet for.
29
48
  */
@@ -55,6 +74,9 @@ export type PostOrgsByOrgIdIssuerRegisterRequest$Outbound = {
55
74
  export declare const PostOrgsByOrgIdIssuerRegisterRequest$outboundSchema: z.ZodMiniType<PostOrgsByOrgIdIssuerRegisterRequest$Outbound, PostOrgsByOrgIdIssuerRegisterRequest>;
56
75
  export declare function postOrgsByOrgIdIssuerRegisterRequestToJSON(postOrgsByOrgIdIssuerRegisterRequest: PostOrgsByOrgIdIssuerRegisterRequest): string;
57
76
  /** @internal */
77
+ export declare const PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema: z.ZodMiniType<PostOrgsByOrgIdIssuerRegisterIssuer, unknown>;
78
+ export declare function postOrgsByOrgIdIssuerRegisterIssuerFromJSON(jsonString: string): SafeParseResult<PostOrgsByOrgIdIssuerRegisterIssuer, SDKValidationError>;
79
+ /** @internal */
58
80
  export declare const Command$inboundSchema: z.ZodMiniType<Command, unknown>;
59
81
  export declare function commandFromJSON(jsonString: string): SafeParseResult<Command, SDKValidationError>;
60
82
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"post-orgs-by-org-id-issuer-register.d.ts","sourceRoot":"","sources":["../../../src/models/operations/post-orgs-by-org-id-issuer-register.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,wCAAwC,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AAC,CAAC,WAAW,CAC7E,6CAA6C,EAC7C,oCAAoC,CAIpC,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAGhE,CAAC;AAEH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C;AAED,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,WAAW,CAC7E,qCAAqC,EACrC,OAAO,CAKP,CAAC;AAEH,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
1
+ {"version":3,"file":"post-orgs-by-org-id-issuer-register.d.ts","sourceRoot":"","sources":["../../../src/models/operations/post-orgs-by-org-id-issuer-register.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,wCAAwC,CA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isterRequestToJSON(postOrgsByOrgIdIssuer
36
36
  return JSON.stringify(PostOrgsByOrgIdIssuerRegisterRequest$outboundSchema.parse(postOrgsByOrgIdIssuerRegisterRequest));
37
37
  }
38
38
  /** @internal */
39
+ export const PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema = z.pipe(z.object({
40
+ id: types.string(),
41
+ name: types.string(),
42
+ organization_id: types.nullable(types.string()),
43
+ max_kyc_level: types.nullable(types.number()),
44
+ can_revoke_others: types.nullable(types.boolean()),
45
+ is_active: types.nullable(types.boolean()),
46
+ chain_addresses: types.nullable(z.record(z.string(), types.string())),
47
+ created_at: types.nullable(types.string()),
48
+ updated_at: types.nullable(types.string()),
49
+ }), z.transform((v) => {
50
+ return remap$(v, {
51
+ "organization_id": "organizationId",
52
+ "max_kyc_level": "maxKycLevel",
53
+ "can_revoke_others": "canRevokeOthers",
54
+ "is_active": "isActive",
55
+ "chain_addresses": "chainAddresses",
56
+ "created_at": "createdAt",
57
+ "updated_at": "updatedAt",
58
+ });
59
+ }));
60
+ export function postOrgsByOrgIdIssuerRegisterIssuerFromJSON(jsonString) {
61
+ return safeParse(jsonString, (x) => PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostOrgsByOrgIdIssuerRegisterIssuer' from JSON`);
62
+ }
63
+ /** @internal */
39
64
  export const Command$inboundSchema = z.object({
40
65
  chainEid: types.number(),
41
66
  commandId: types.nullable(types.string()),
@@ -46,7 +71,7 @@ export function commandFromJSON(jsonString) {
46
71
  /** @internal */
47
72
  export const PostOrgsByOrgIdIssuerRegisterResponse$inboundSchema = z.object({
48
73
  registered: types.boolean(),
49
- issuer: z.optional(z.nullable(z.any())),
74
+ issuer: z.lazy(() => PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema),
50
75
  commands: z.array(z.lazy(() => Command$inboundSchema)),
51
76
  });
52
77
  export function postOrgsByOrgIdIssuerRegisterResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"post-orgs-by-org-id-issuer-register.js","sourceRoot":"","sources":["../../../src/models/operations/post-orgs-by-org-id-issuer-register.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AA0CnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEL,MAAM,UAAU,2CAA2C,CACzD,qCAA4E,EACpE;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oDAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uDAAuD,GAI9D,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACzC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,eAAe;QAC5B,eAAe,EAAE,mBAAmB;KACrC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,C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GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,UAAU,6CAA6C,CAC3D,UAAkB,EAC0D;IAC5E,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,mDAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AAAA,CACH"}
1
+ {"version":3,"file":"post-orgs-by-org-id-issuer-register.js","sourceRoot":"","sources":["../../../src/models/operations/post-orgs-by-org-id-issuer-register.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AA4DnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEL,MAAM,UAAU,2CAA2C,CACzD,qCAA4E,EACpE;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oDAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AAAA,CACH;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uDAAuD,GAI9D,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,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I,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AAAA,CACH;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GAG5D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,KAAK,CAAC,OAAO,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iDAAiD,CAAC;IACvE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,UAAU,6CAA6C,CAC3D,UAAkB,EAC0D;IAC5E,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,mDAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AAAA,CACH"}
@@ -298,7 +298,7 @@ export declare class Organizations extends ClientSDK {
298
298
  * Get issuer status for organization
299
299
  *
300
300
  * @remarks
301
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
301
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
302
302
  */
303
303
  getOrgsByOrgIdIssuer(security: operations.GetOrgsByOrgIdIssuerSecurity, orgId: string, options?: RequestOptions): Promise<operations.GetOrgsByOrgIdIssuerResponse>;
304
304
  /**
@@ -442,7 +442,7 @@ export class Organizations extends ClientSDK {
442
442
  * Get issuer status for organization
443
443
  *
444
444
  * @remarks
445
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
445
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
446
446
  */
447
447
  async getOrgsByOrgIdIssuer(security, orgId, options) {
448
448
  return unwrapAsync(organizationsGetOrgsByOrgIdIssuer(this, security, orgId, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@clossir-tech/ts-sdk",
5
- "version": "0.11.2",
5
+ "version": "0.11.3",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clossir-tech/ts-sdk",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "author": "Clossir Team",
5
5
  "description": "TypeScript SDK for the Clossir platform API",
6
6
  "homepage": "https://docs.clossir.com",
@@ -9,8 +9,8 @@
9
9
  "registry": "https://registry.npmjs.org"
10
10
  },
11
11
  "repository": {
12
- "url": "git+https://github.com/SignumIdentity/signum-api.git",
13
- "type": "git"
12
+ "type": "git",
13
+ "url": "git+https://github.com/SignumIdentity/signum-api.git"
14
14
  },
15
15
  "type": "module",
16
16
  "main": "./esm/index.js",
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Get issuer status for organization
32
32
  *
33
33
  * @remarks
34
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
34
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
35
35
  */
36
36
  export function organizationsGetOrgsByOrgIdIssuer(
37
37
  client: ClossirCore,
@@ -186,7 +186,10 @@ async function $do(
186
186
  | SDKValidationError
187
187
  >(
188
188
  M.json(200, operations.GetOrgsByOrgIdIssuerResponse$inboundSchema),
189
- M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
189
+ M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
190
+ ctype: "application/problem+json",
191
+ }),
192
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
190
193
  ctype: "application/problem+json",
191
194
  }),
192
195
  M.fail("4XX"),
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.11.2",
68
+ sdkVersion: "0.11.3",
69
69
  genVersion: "2.916.4",
70
70
  userAgent:
71
- "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
71
+ "speakeasy-sdk/typescript 0.11.3 2.916.4 2.0.0 @clossir-tech/ts-sdk",
72
72
  } as const;
@@ -18,13 +18,38 @@ export type GetOrgsByOrgIdIssuerRequest = {
18
18
  orgId: string;
19
19
  };
20
20
 
21
+ export type GetOrgsByOrgIdIssuerIssuer = {
22
+ /**
23
+ * Issuer record id.
24
+ */
25
+ id: string;
26
+ /**
27
+ * Issuer display name.
28
+ */
29
+ name: string;
30
+ organizationId: string | null;
31
+ maxKycLevel: number | null;
32
+ canRevokeOthers: boolean | null;
33
+ isActive: boolean | null;
34
+ chainAddresses: { [k: string]: string } | null;
35
+ createdAt: string | null;
36
+ updatedAt: string | null;
37
+ };
38
+
21
39
  /**
22
40
  * Response
23
41
  */
24
42
  export type GetOrgsByOrgIdIssuerResponse = {
25
43
  registered: boolean;
26
- issuer?: any | null | undefined;
44
+ issuer: GetOrgsByOrgIdIssuerIssuer | null;
45
+ /**
46
+ * Markets the platform operates in.
47
+ */
27
48
  coveredJurisdictions: Array<string>;
49
+ /**
50
+ * Markets covered by this organization's accepted legal opinions — the list asset creation is checked against; empty when none is on file.
51
+ */
52
+ opinionCoveredJurisdictions: Array<string>;
28
53
  };
29
54
 
30
55
  /** @internal */
@@ -75,6 +100,45 @@ export function getOrgsByOrgIdIssuerRequestToJSON(
75
100
  );
76
101
  }
77
102
 
103
+ /** @internal */
104
+ export const GetOrgsByOrgIdIssuerIssuer$inboundSchema: z.ZodMiniType<
105
+ GetOrgsByOrgIdIssuerIssuer,
106
+ unknown
107
+ > = z.pipe(
108
+ z.object({
109
+ id: types.string(),
110
+ name: types.string(),
111
+ organization_id: types.nullable(types.string()),
112
+ max_kyc_level: types.nullable(types.number()),
113
+ can_revoke_others: types.nullable(types.boolean()),
114
+ is_active: types.nullable(types.boolean()),
115
+ chain_addresses: types.nullable(z.record(z.string(), types.string())),
116
+ created_at: types.nullable(types.string()),
117
+ updated_at: types.nullable(types.string()),
118
+ }),
119
+ z.transform((v) => {
120
+ return remap$(v, {
121
+ "organization_id": "organizationId",
122
+ "max_kyc_level": "maxKycLevel",
123
+ "can_revoke_others": "canRevokeOthers",
124
+ "is_active": "isActive",
125
+ "chain_addresses": "chainAddresses",
126
+ "created_at": "createdAt",
127
+ "updated_at": "updatedAt",
128
+ });
129
+ }),
130
+ );
131
+
132
+ export function getOrgsByOrgIdIssuerIssuerFromJSON(
133
+ jsonString: string,
134
+ ): SafeParseResult<GetOrgsByOrgIdIssuerIssuer, SDKValidationError> {
135
+ return safeParse(
136
+ jsonString,
137
+ (x) => GetOrgsByOrgIdIssuerIssuer$inboundSchema.parse(JSON.parse(x)),
138
+ `Failed to parse 'GetOrgsByOrgIdIssuerIssuer' from JSON`,
139
+ );
140
+ }
141
+
78
142
  /** @internal */
79
143
  export const GetOrgsByOrgIdIssuerResponse$inboundSchema: z.ZodMiniType<
80
144
  GetOrgsByOrgIdIssuerResponse,
@@ -82,12 +146,16 @@ export const GetOrgsByOrgIdIssuerResponse$inboundSchema: z.ZodMiniType<
82
146
  > = z.pipe(
83
147
  z.object({
84
148
  registered: types.boolean(),
85
- issuer: z.optional(z.nullable(z.any())),
149
+ issuer: types.nullable(
150
+ z.lazy(() => GetOrgsByOrgIdIssuerIssuer$inboundSchema),
151
+ ),
86
152
  covered_jurisdictions: z.array(types.string()),
153
+ opinion_covered_jurisdictions: z.array(types.string()),
87
154
  }),
88
155
  z.transform((v) => {
89
156
  return remap$(v, {
90
157
  "covered_jurisdictions": "coveredJurisdictions",
158
+ "opinion_covered_jurisdictions": "opinionCoveredJurisdictions",
91
159
  });
92
160
  }),
93
161
  );
@@ -25,6 +25,24 @@ export type PostOrgsByOrgIdIssuerRegisterRequest = {
25
25
  body: PostOrgsByOrgIdIssuerRegisterRequestBody;
26
26
  };
27
27
 
28
+ export type PostOrgsByOrgIdIssuerRegisterIssuer = {
29
+ /**
30
+ * Issuer record id.
31
+ */
32
+ id: string;
33
+ /**
34
+ * Issuer display name.
35
+ */
36
+ name: string;
37
+ organizationId: string | null;
38
+ maxKycLevel: number | null;
39
+ canRevokeOthers: boolean | null;
40
+ isActive: boolean | null;
41
+ chainAddresses: { [k: string]: string } | null;
42
+ createdAt: string | null;
43
+ updatedAt: string | null;
44
+ };
45
+
28
46
  export type Command = {
29
47
  chainEid: number;
30
48
  commandId: string | null;
@@ -35,7 +53,7 @@ export type Command = {
35
53
  */
36
54
  export type PostOrgsByOrgIdIssuerRegisterResponse = {
37
55
  registered: boolean;
38
- issuer?: any | null | undefined;
56
+ issuer: PostOrgsByOrgIdIssuerRegisterIssuer;
39
57
  /**
40
58
  * One entry per chain leg the org has a server wallet for.
41
59
  */
@@ -130,6 +148,46 @@ export function postOrgsByOrgIdIssuerRegisterRequestToJSON(
130
148
  );
131
149
  }
132
150
 
151
+ /** @internal */
152
+ export const PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema: z.ZodMiniType<
153
+ PostOrgsByOrgIdIssuerRegisterIssuer,
154
+ unknown
155
+ > = z.pipe(
156
+ z.object({
157
+ id: types.string(),
158
+ name: types.string(),
159
+ organization_id: types.nullable(types.string()),
160
+ max_kyc_level: types.nullable(types.number()),
161
+ can_revoke_others: types.nullable(types.boolean()),
162
+ is_active: types.nullable(types.boolean()),
163
+ chain_addresses: types.nullable(z.record(z.string(), types.string())),
164
+ created_at: types.nullable(types.string()),
165
+ updated_at: types.nullable(types.string()),
166
+ }),
167
+ z.transform((v) => {
168
+ return remap$(v, {
169
+ "organization_id": "organizationId",
170
+ "max_kyc_level": "maxKycLevel",
171
+ "can_revoke_others": "canRevokeOthers",
172
+ "is_active": "isActive",
173
+ "chain_addresses": "chainAddresses",
174
+ "created_at": "createdAt",
175
+ "updated_at": "updatedAt",
176
+ });
177
+ }),
178
+ );
179
+
180
+ export function postOrgsByOrgIdIssuerRegisterIssuerFromJSON(
181
+ jsonString: string,
182
+ ): SafeParseResult<PostOrgsByOrgIdIssuerRegisterIssuer, SDKValidationError> {
183
+ return safeParse(
184
+ jsonString,
185
+ (x) =>
186
+ PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema.parse(JSON.parse(x)),
187
+ `Failed to parse 'PostOrgsByOrgIdIssuerRegisterIssuer' from JSON`,
188
+ );
189
+ }
190
+
133
191
  /** @internal */
134
192
  export const Command$inboundSchema: z.ZodMiniType<Command, unknown> = z.object({
135
193
  chainEid: types.number(),
@@ -152,7 +210,7 @@ export const PostOrgsByOrgIdIssuerRegisterResponse$inboundSchema: z.ZodMiniType<
152
210
  unknown
153
211
  > = z.object({
154
212
  registered: types.boolean(),
155
- issuer: z.optional(z.nullable(z.any())),
213
+ issuer: z.lazy(() => PostOrgsByOrgIdIssuerRegisterIssuer$inboundSchema),
156
214
  commands: z.array(z.lazy(() => Command$inboundSchema)),
157
215
  });
158
216
 
@@ -955,7 +955,7 @@ export class Organizations extends ClientSDK {
955
955
  * Get issuer status for organization
956
956
  *
957
957
  * @remarks
958
- * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
958
+ * Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
959
959
  */
960
960
  async getOrgsByOrgIdIssuer(
961
961
  security: operations.GetOrgsByOrgIdIssuerSecurity,