@stigmer/sdk 3.16.0 → 3.17.0
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/gen/client.d.ts +12 -0
- package/gen/client.d.ts.map +1 -1
- package/gen/client.js +12 -0
- package/gen/client.js.map +1 -1
- package/gen/license.d.ts +58 -0
- package/gen/license.d.ts.map +1 -0
- package/gen/license.js +97 -0
- package/gen/license.js.map +1 -0
- package/gen/plan.d.ts +56 -0
- package/gen/plan.d.ts.map +1 -0
- package/gen/plan.js +99 -0
- package/gen/plan.js.map +1 -0
- package/gen/plugin.d.ts +3 -1
- package/gen/plugin.d.ts.map +1 -1
- package/gen/plugin.js +25 -0
- package/gen/plugin.js.map +1 -1
- package/gen/resource-availability.d.ts.map +1 -1
- package/gen/resource-availability.js +3 -0
- package/gen/resource-availability.js.map +1 -1
- package/gen/subscription.d.ts +33 -0
- package/gen/subscription.d.ts.map +1 -0
- package/gen/subscription.js +69 -0
- package/gen/subscription.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/platform.d.ts +15 -3
- package/platform.d.ts.map +1 -1
- package/platform.js +22 -3
- package/platform.js.map +1 -1
- package/src/gen/client.ts +15 -0
- package/src/gen/license.ts +141 -0
- package/src/gen/plan.ts +138 -0
- package/src/gen/plugin.ts +24 -1
- package/src/gen/resource-availability.ts +3 -0
- package/src/gen/subscription.ts +84 -0
- package/src/index.ts +18 -0
- package/src/platform.ts +25 -2
package/src/gen/plan.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// Code generated by stigmer-codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import { wrapError } from "./errors.js";
|
|
4
|
+
import { stripUndefined } from "./proto-utils.js";
|
|
5
|
+
import { create } from "@bufbuild/protobuf";
|
|
6
|
+
import { createClient, type Client, type Transport } from "@connectrpc/connect";
|
|
7
|
+
import { PlanSchema, type Plan } from "@stigmer/protos/ai/stigmer/billing/plan/v1/api_pb";
|
|
8
|
+
import { PlanCommandController } from "@stigmer/protos/ai/stigmer/billing/plan/v1/command_pb";
|
|
9
|
+
import { PlanIdSchema, ListPlansInputSchema, PlansSchema, type ListPlansInput, type Plans } from "@stigmer/protos/ai/stigmer/billing/plan/v1/io_pb";
|
|
10
|
+
import { PlanQueryController } from "@stigmer/protos/ai/stigmer/billing/plan/v1/query_pb";
|
|
11
|
+
import { PlanSpecSchema, PlanInstrument, PlanTermsSchema } from "@stigmer/protos/ai/stigmer/billing/plan/v1/spec_pb";
|
|
12
|
+
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
13
|
+
import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
|
|
14
|
+
import { Feature, EntitlementLimitsSchema, EntitlementsSchema } from "@stigmer/protos/ai/stigmer/platform/v1/entitlement_pb";
|
|
15
|
+
|
|
16
|
+
/** Provides operations on plan resources. */
|
|
17
|
+
export class PlanClient {
|
|
18
|
+
private readonly command: Client<typeof PlanCommandController>;
|
|
19
|
+
private readonly query: Client<typeof PlanQueryController>;
|
|
20
|
+
|
|
21
|
+
constructor(transport: Transport) {
|
|
22
|
+
this.command = createClient(PlanCommandController, transport);
|
|
23
|
+
this.query = createClient(PlanQueryController, transport);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async create(input: PlanInput): Promise<Plan> {
|
|
27
|
+
try {
|
|
28
|
+
return await this.command.create(buildPlanProto(input));
|
|
29
|
+
} catch (e) { throw wrapError(e); }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async retire(id: string): Promise<Plan> {
|
|
33
|
+
try {
|
|
34
|
+
return await this.command.retire(create(PlanIdSchema, { value: id }));
|
|
35
|
+
} catch (e) { throw wrapError(e); }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async get(id: string): Promise<Plan> {
|
|
39
|
+
try {
|
|
40
|
+
return await this.query.get(create(PlanIdSchema, { value: id }));
|
|
41
|
+
} catch (e) { throw wrapError(e); }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async list(input: ListPlansInput): Promise<Plans> {
|
|
45
|
+
try {
|
|
46
|
+
return await this.query.list(input);
|
|
47
|
+
} catch (e) { throw wrapError(e); }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Input for creating/updating a Plan. */
|
|
52
|
+
export interface PlanInput {
|
|
53
|
+
/**
|
|
54
|
+
* The resource's `metadata.id`, for exact update addressing when set
|
|
55
|
+
* from a loaded resource. Required for updates to platform-scoped
|
|
56
|
+
* (org-less) kinds, where the org+slug fallback cannot match. On
|
|
57
|
+
* create, the cloud server stamps its own id regardless; the OSS
|
|
58
|
+
* server honors a caller-supplied id (existing apply semantics).
|
|
59
|
+
*/
|
|
60
|
+
id?: string;
|
|
61
|
+
name: string;
|
|
62
|
+
slug?: string;
|
|
63
|
+
org: string;
|
|
64
|
+
labels?: Record<string, string>;
|
|
65
|
+
visibility?: ApiResourceVisibility;
|
|
66
|
+
instrument: PlanInstrument;
|
|
67
|
+
entitlements: EntitlementsInput;
|
|
68
|
+
terms?: PlanTermsInput;
|
|
69
|
+
description?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** SDK input type for Entitlements. */
|
|
73
|
+
export interface EntitlementsInput {
|
|
74
|
+
limits?: EntitlementLimitsInput;
|
|
75
|
+
features?: Feature[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** SDK input type for EntitlementLimits. */
|
|
79
|
+
export interface EntitlementLimitsInput {
|
|
80
|
+
maxOrganizations?: number;
|
|
81
|
+
maxUsers?: number;
|
|
82
|
+
includedManagedOrganizations?: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** SDK input type for PlanTerms. */
|
|
86
|
+
export interface PlanTermsInput {
|
|
87
|
+
monthlyMinimumMicros?: bigint;
|
|
88
|
+
usageShareBasisPoints?: number;
|
|
89
|
+
perExtraOrganizationMicros?: bigint;
|
|
90
|
+
annualPriceMicros?: bigint;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function buildEntitlementLimitsProto(input: EntitlementLimitsInput) {
|
|
94
|
+
return Object.assign(create(EntitlementLimitsSchema), stripUndefined({
|
|
95
|
+
maxOrganizations: input.maxOrganizations,
|
|
96
|
+
maxUsers: input.maxUsers,
|
|
97
|
+
includedManagedOrganizations: input.includedManagedOrganizations,
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function buildEntitlementsProto(input: EntitlementsInput) {
|
|
102
|
+
const msg = create(EntitlementsSchema);
|
|
103
|
+
if (input.limits) msg.limits = buildEntitlementLimitsProto(input.limits);
|
|
104
|
+
if (input.features) msg.features = input.features;
|
|
105
|
+
return msg;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function buildPlanTermsProto(input: PlanTermsInput) {
|
|
109
|
+
return Object.assign(create(PlanTermsSchema), stripUndefined({
|
|
110
|
+
monthlyMinimumMicros: input.monthlyMinimumMicros,
|
|
111
|
+
usageShareBasisPoints: input.usageShareBasisPoints,
|
|
112
|
+
perExtraOrganizationMicros: input.perExtraOrganizationMicros,
|
|
113
|
+
annualPriceMicros: input.annualPriceMicros,
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function buildPlanProto(input: PlanInput): Plan {
|
|
118
|
+
const entitlements = input.entitlements ? buildEntitlementsProto(input.entitlements) : undefined;
|
|
119
|
+
const terms = input.terms ? buildPlanTermsProto(input.terms) : undefined;
|
|
120
|
+
return Object.assign(create(PlanSchema), {
|
|
121
|
+
apiVersion: "billing.stigmer.ai/v1",
|
|
122
|
+
kind: "Plan",
|
|
123
|
+
metadata: Object.assign(create(ApiResourceMetadataSchema), {
|
|
124
|
+
...(input.id && { id: input.id }),
|
|
125
|
+
name: input.name,
|
|
126
|
+
org: input.org,
|
|
127
|
+
...(input.slug && { slug: input.slug }),
|
|
128
|
+
...(input.labels && { labels: input.labels }),
|
|
129
|
+
...(input.visibility && { visibility: input.visibility }),
|
|
130
|
+
}),
|
|
131
|
+
spec: Object.assign(create(PlanSpecSchema), stripUndefined({
|
|
132
|
+
instrument: input.instrument,
|
|
133
|
+
entitlements,
|
|
134
|
+
terms,
|
|
135
|
+
description: input.description,
|
|
136
|
+
})),
|
|
137
|
+
}) as Plan;
|
|
138
|
+
}
|
package/src/gen/plugin.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { wrapError } from "./errors.js";
|
|
4
4
|
import { stripUndefined } from "./proto-utils.js";
|
|
5
|
-
import { type ResourceRef } from "./types.js";
|
|
5
|
+
import { type ListParams, type ListResult, type ResourceRef } from "./types.js";
|
|
6
6
|
import { create } from "@bufbuild/protobuf";
|
|
7
7
|
import { createClient, type Client, type Transport } from "@connectrpc/connect";
|
|
8
8
|
import { PluginSchema, type Plugin } from "@stigmer/protos/ai/stigmer/agentic/plugin/v1/api_pb";
|
|
@@ -14,15 +14,20 @@ import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/
|
|
|
14
14
|
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
15
15
|
import { ApiResourceReferenceSchema, type UpdateVisibilityInput } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
16
16
|
import { ApiResourceMetadataSchema, ApiResourceMetadataVersionSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
|
|
17
|
+
import { PageInfoSchema } from "@stigmer/protos/ai/stigmer/commons/rpc/pagination_pb";
|
|
18
|
+
import { SearchRequestSchema } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
19
|
+
import { SearchService } from "@stigmer/protos/ai/stigmer/search/v1/query_pb";
|
|
17
20
|
|
|
18
21
|
/** Provides operations on plugin resources. */
|
|
19
22
|
export class PluginClient {
|
|
20
23
|
private readonly command: Client<typeof PluginCommandController>;
|
|
21
24
|
private readonly query: Client<typeof PluginQueryController>;
|
|
25
|
+
private readonly search: Client<typeof SearchService>;
|
|
22
26
|
|
|
23
27
|
constructor(transport: Transport) {
|
|
24
28
|
this.command = createClient(PluginCommandController, transport);
|
|
25
29
|
this.query = createClient(PluginQueryController, transport);
|
|
30
|
+
this.search = createClient(SearchService, transport);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
async push(input: PushPluginRequest): Promise<Plugin> {
|
|
@@ -72,6 +77,24 @@ export class PluginClient {
|
|
|
72
77
|
return await this.query.listVersions(input);
|
|
73
78
|
} catch (e) { throw wrapError(e); }
|
|
74
79
|
}
|
|
80
|
+
|
|
81
|
+
async list(params: ListParams): Promise<ListResult> {
|
|
82
|
+
try {
|
|
83
|
+
const resp = await this.search.search(create(SearchRequestSchema, {
|
|
84
|
+
kinds: [ApiResourceKind.plugin],
|
|
85
|
+
query: params.query,
|
|
86
|
+
org: params.org,
|
|
87
|
+
excludePublic: params.excludePublic ?? false,
|
|
88
|
+
crossOrgPublic: params.crossOrgPublic ?? false,
|
|
89
|
+
page: params.page ? create(PageInfoSchema, params.page) : undefined,
|
|
90
|
+
}));
|
|
91
|
+
return {
|
|
92
|
+
entries: resp.entries,
|
|
93
|
+
totalCount: resp.totalCount,
|
|
94
|
+
totalPages: resp.totalPages,
|
|
95
|
+
};
|
|
96
|
+
} catch (e) { throw wrapError(e); }
|
|
97
|
+
}
|
|
75
98
|
}
|
|
76
99
|
|
|
77
100
|
/** Input for creating/updating a Plugin. */
|
|
@@ -41,4 +41,7 @@ export const KIND_TIERS: ReadonlyMap<ApiResourceKind, ResourceTier> = new Map([
|
|
|
41
41
|
[ApiResourceKind.memory, ResourceTier.open_source],
|
|
42
42
|
[ApiResourceKind.plugin, ResourceTier.open_source],
|
|
43
43
|
[ApiResourceKind.project, ResourceTier.open_source],
|
|
44
|
+
[ApiResourceKind.plan, ResourceTier.cloud_only],
|
|
45
|
+
[ApiResourceKind.subscription, ResourceTier.cloud_only],
|
|
46
|
+
[ApiResourceKind.license, ResourceTier.cloud_only],
|
|
44
47
|
]);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Code generated by stigmer-codegen. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import { wrapError } from "./errors.js";
|
|
4
|
+
import { stripUndefined } from "./proto-utils.js";
|
|
5
|
+
import { create } from "@bufbuild/protobuf";
|
|
6
|
+
import { createClient, type Client, type Transport } from "@connectrpc/connect";
|
|
7
|
+
import { SubscriptionSchema, type Subscription } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/api_pb";
|
|
8
|
+
import { SubscriptionCommandController } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/command_pb";
|
|
9
|
+
import { ChangePlanInputSchema, CancelSubscriptionInputSchema, GetSubscriptionForOrganizationInputSchema, GetEntitlementsInputSchema, GetEntitlementsOutputSchema, type ChangePlanInput, type CancelSubscriptionInput, type GetSubscriptionForOrganizationInput, type GetEntitlementsInput, type GetEntitlementsOutput } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/io_pb";
|
|
10
|
+
import { SubscriptionQueryController } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/query_pb";
|
|
11
|
+
import { SubscriptionSpecSchema } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/spec_pb";
|
|
12
|
+
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
13
|
+
import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
|
|
14
|
+
|
|
15
|
+
/** Provides operations on subscription resources. */
|
|
16
|
+
export class SubscriptionClient {
|
|
17
|
+
private readonly command: Client<typeof SubscriptionCommandController>;
|
|
18
|
+
private readonly query: Client<typeof SubscriptionQueryController>;
|
|
19
|
+
|
|
20
|
+
constructor(transport: Transport) {
|
|
21
|
+
this.command = createClient(SubscriptionCommandController, transport);
|
|
22
|
+
this.query = createClient(SubscriptionQueryController, transport);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async changePlan(input: ChangePlanInput): Promise<Subscription> {
|
|
26
|
+
try {
|
|
27
|
+
return await this.command.changePlan(input);
|
|
28
|
+
} catch (e) { throw wrapError(e); }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async cancel(input: CancelSubscriptionInput): Promise<Subscription> {
|
|
32
|
+
try {
|
|
33
|
+
return await this.command.cancel(input);
|
|
34
|
+
} catch (e) { throw wrapError(e); }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async getForOrganization(input: GetSubscriptionForOrganizationInput): Promise<Subscription> {
|
|
38
|
+
try {
|
|
39
|
+
return await this.query.getForOrganization(input);
|
|
40
|
+
} catch (e) { throw wrapError(e); }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async getEntitlements(input: GetEntitlementsInput): Promise<GetEntitlementsOutput> {
|
|
44
|
+
try {
|
|
45
|
+
return await this.query.getEntitlements(input);
|
|
46
|
+
} catch (e) { throw wrapError(e); }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Input for creating/updating a Subscription. */
|
|
51
|
+
export interface SubscriptionInput {
|
|
52
|
+
/**
|
|
53
|
+
* The resource's `metadata.id`, for exact update addressing when set
|
|
54
|
+
* from a loaded resource. Required for updates to platform-scoped
|
|
55
|
+
* (org-less) kinds, where the org+slug fallback cannot match. On
|
|
56
|
+
* create, the cloud server stamps its own id regardless; the OSS
|
|
57
|
+
* server honors a caller-supplied id (existing apply semantics).
|
|
58
|
+
*/
|
|
59
|
+
id?: string;
|
|
60
|
+
name: string;
|
|
61
|
+
slug?: string;
|
|
62
|
+
org: string;
|
|
63
|
+
labels?: Record<string, string>;
|
|
64
|
+
visibility?: ApiResourceVisibility;
|
|
65
|
+
planId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function buildSubscriptionProto(input: SubscriptionInput): Subscription {
|
|
69
|
+
return Object.assign(create(SubscriptionSchema), {
|
|
70
|
+
apiVersion: "billing.stigmer.ai/v1",
|
|
71
|
+
kind: "Subscription",
|
|
72
|
+
metadata: Object.assign(create(ApiResourceMetadataSchema), {
|
|
73
|
+
...(input.id && { id: input.id }),
|
|
74
|
+
name: input.name,
|
|
75
|
+
org: input.org,
|
|
76
|
+
...(input.slug && { slug: input.slug }),
|
|
77
|
+
...(input.labels && { labels: input.labels }),
|
|
78
|
+
...(input.visibility && { visibility: input.visibility }),
|
|
79
|
+
}),
|
|
80
|
+
spec: Object.assign(create(SubscriptionSpecSchema), stripUndefined({
|
|
81
|
+
planId: input.planId,
|
|
82
|
+
})),
|
|
83
|
+
}) as Subscription;
|
|
84
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -283,6 +283,24 @@ export {
|
|
|
283
283
|
toPlatformClientUpdateInput,
|
|
284
284
|
type PlatformClientInput,
|
|
285
285
|
} from "./gen/platformclient.js";
|
|
286
|
+
// The billing kinds (cloud_only): the plan catalog, an organization's
|
|
287
|
+
// subscription, and issued licenses. The entitlement input types are
|
|
288
|
+
// emitted once per module that uses them, identical in shape; this barrel
|
|
289
|
+
// exports the plan's copy. A subscription is created by the payment system,
|
|
290
|
+
// never by a client, so no input type is exported for it.
|
|
291
|
+
export {
|
|
292
|
+
PlanClient,
|
|
293
|
+
type PlanInput,
|
|
294
|
+
type PlanTermsInput,
|
|
295
|
+
type EntitlementsInput,
|
|
296
|
+
type EntitlementLimitsInput,
|
|
297
|
+
} from "./gen/plan.js";
|
|
298
|
+
export { SubscriptionClient } from "./gen/subscription.js";
|
|
299
|
+
export {
|
|
300
|
+
LicenseClient,
|
|
301
|
+
type LicenseInput,
|
|
302
|
+
type LicenseCustomerInput,
|
|
303
|
+
} from "./gen/license.js";
|
|
286
304
|
export {
|
|
287
305
|
ProjectClient,
|
|
288
306
|
toProjectUpdateInput,
|
package/src/platform.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { createClient, type Client, type Transport } from "@connectrpc/connect";
|
|
2
2
|
import { create } from "@bufbuild/protobuf";
|
|
3
3
|
import {
|
|
4
|
+
GetLicenseStatusInputSchema,
|
|
4
5
|
GetServerInfoInputSchema,
|
|
5
6
|
PlatformQueryController,
|
|
6
7
|
} from "@stigmer/protos/ai/stigmer/platform/v1/server_info_pb";
|
|
7
8
|
import type {
|
|
9
|
+
GetLicenseStatusOutput,
|
|
8
10
|
GetServerInfoOutput,
|
|
9
11
|
ServerEdition,
|
|
10
12
|
} from "@stigmer/protos/ai/stigmer/platform/v1/server_info_pb";
|
|
@@ -25,11 +27,12 @@ export interface ServerInfo {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
* Client for platform-level queries (server info, capabilities).
|
|
30
|
+
* Client for platform-level queries (server info, capabilities, license).
|
|
29
31
|
*
|
|
30
32
|
* The {@link getServerInfo} method is the authoritative source for
|
|
31
33
|
* deployment mode detection. It replaces URL-based hostname guessing
|
|
32
|
-
* with a server-reported value.
|
|
34
|
+
* with a server-reported value. {@link getLicenseStatus} is its sibling
|
|
35
|
+
* for the license the server holds; every edition answers it.
|
|
33
36
|
*/
|
|
34
37
|
export class PlatformClient {
|
|
35
38
|
private readonly platform: Client<typeof PlatformQueryController>;
|
|
@@ -62,4 +65,24 @@ export class PlatformClient {
|
|
|
62
65
|
throw wrapError(e);
|
|
63
66
|
}
|
|
64
67
|
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Retrieve the state of the license the connected server holds.
|
|
71
|
+
*
|
|
72
|
+
* Every edition answers: open source and Stigmer Cloud report `absent`
|
|
73
|
+
* (neither holds a key); a Stigmer Enterprise deployment reports the
|
|
74
|
+
* state of its configured ticket with the verified claims. Requires a
|
|
75
|
+
* signed-in caller. The generated output is returned as it is, so the
|
|
76
|
+
* presence contract it documents (claims exactly when a ticket verified,
|
|
77
|
+
* key id whenever one was presented) reaches the caller unchanged.
|
|
78
|
+
*/
|
|
79
|
+
async getLicenseStatus(): Promise<GetLicenseStatusOutput> {
|
|
80
|
+
try {
|
|
81
|
+
return await this.platform.getLicenseStatus(
|
|
82
|
+
create(GetLicenseStatusInputSchema, {}),
|
|
83
|
+
);
|
|
84
|
+
} catch (e) {
|
|
85
|
+
throw wrapError(e);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
65
88
|
}
|