@signa-so/sdk 0.2.2 → 0.7.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/README.md +22 -14
- package/dist/_internals/fetch-with-retry.d.ts.map +1 -1
- package/dist/_internals/fetch-with-retry.js +11 -3
- package/dist/_internals/fetch-with-retry.js.map +1 -1
- package/dist/_internals/query-string.d.ts +5 -4
- package/dist/_internals/query-string.d.ts.map +1 -1
- package/dist/_internals/query-string.js +6 -14
- package/dist/_internals/query-string.js.map +1 -1
- package/dist/category-nice.d.ts +22 -0
- package/dist/category-nice.d.ts.map +1 -0
- package/dist/category-nice.js +109 -0
- package/dist/category-nice.js.map +1 -0
- package/dist/client.d.ts +80 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +110 -13
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +7 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +10 -1
- package/dist/errors.js.map +1 -1
- package/dist/generated/api-types.d.ts +9700 -2920
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/pagination.d.ts +24 -2
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +28 -1
- package/dist/pagination.js.map +1 -1
- package/dist/resources/alerts.d.ts +18 -13
- package/dist/resources/alerts.d.ts.map +1 -1
- package/dist/resources/alerts.js +28 -20
- package/dist/resources/alerts.js.map +1 -1
- package/dist/resources/analytics.d.ts +8 -0
- package/dist/resources/analytics.d.ts.map +1 -0
- package/dist/resources/analytics.js +13 -0
- package/dist/resources/analytics.js.map +1 -0
- package/dist/resources/assignments.d.ts +25 -0
- package/dist/resources/assignments.d.ts.map +1 -0
- package/dist/resources/assignments.js +33 -0
- package/dist/resources/assignments.js.map +1 -0
- package/dist/resources/attorneys.d.ts +7 -3
- package/dist/resources/attorneys.d.ts.map +1 -1
- package/dist/resources/attorneys.js +10 -5
- package/dist/resources/attorneys.js.map +1 -1
- package/dist/resources/compare.d.ts +29 -0
- package/dist/resources/compare.d.ts.map +1 -0
- package/dist/resources/compare.js +30 -0
- package/dist/resources/compare.js.map +1 -0
- package/dist/resources/deadlines.d.ts +24 -0
- package/dist/resources/deadlines.d.ts.map +1 -0
- package/dist/resources/deadlines.js +26 -0
- package/dist/resources/deadlines.js.map +1 -0
- package/dist/resources/entities.d.ts +53 -0
- package/dist/resources/entities.d.ts.map +1 -0
- package/dist/resources/entities.js +74 -0
- package/dist/resources/entities.js.map +1 -0
- package/dist/resources/events.d.ts +2 -2
- package/dist/resources/events.d.ts.map +1 -1
- package/dist/resources/events.js +2 -2
- package/dist/resources/events.js.map +1 -1
- package/dist/resources/feedback.d.ts +19 -0
- package/dist/resources/feedback.d.ts.map +1 -0
- package/dist/resources/feedback.js +29 -0
- package/dist/resources/feedback.js.map +1 -0
- package/dist/resources/firms.d.ts +7 -6
- package/dist/resources/firms.d.ts.map +1 -1
- package/dist/resources/firms.js +9 -5
- package/dist/resources/firms.js.map +1 -1
- package/dist/resources/goods-services.d.ts +56 -0
- package/dist/resources/goods-services.d.ts.map +1 -0
- package/dist/resources/goods-services.js +60 -0
- package/dist/resources/goods-services.js.map +1 -0
- package/dist/resources/oppositions.d.ts +18 -0
- package/dist/resources/oppositions.d.ts.map +1 -0
- package/dist/resources/oppositions.js +20 -0
- package/dist/resources/oppositions.js.map +1 -0
- package/dist/resources/organization.d.ts +56 -0
- package/dist/resources/organization.d.ts.map +1 -0
- package/dist/resources/organization.js +89 -0
- package/dist/resources/organization.js.map +1 -0
- package/dist/resources/owners.d.ts +7 -3
- package/dist/resources/owners.d.ts.map +1 -1
- package/dist/resources/owners.js +10 -5
- package/dist/resources/owners.js.map +1 -1
- package/dist/resources/portfolios.d.ts +3 -3
- package/dist/resources/portfolios.d.ts.map +1 -1
- package/dist/resources/portfolios.js +4 -4
- package/dist/resources/portfolios.js.map +1 -1
- package/dist/resources/proceedings.d.ts +1 -1
- package/dist/resources/proceedings.js +1 -1
- package/dist/resources/reconcile.d.ts +22 -0
- package/dist/resources/reconcile.d.ts.map +1 -0
- package/dist/resources/reconcile.js +24 -0
- package/dist/resources/reconcile.js.map +1 -0
- package/dist/resources/references.d.ts +51 -12
- package/dist/resources/references.d.ts.map +1 -1
- package/dist/resources/references.js +33 -15
- package/dist/resources/references.js.map +1 -1
- package/dist/resources/screening.d.ts +63 -0
- package/dist/resources/screening.d.ts.map +1 -0
- package/dist/resources/screening.js +66 -0
- package/dist/resources/screening.js.map +1 -0
- package/dist/resources/suggest.d.ts +16 -0
- package/dist/resources/suggest.d.ts.map +1 -0
- package/dist/resources/suggest.js +18 -0
- package/dist/resources/suggest.js.map +1 -0
- package/dist/resources/trademarks.d.ts +82 -6
- package/dist/resources/trademarks.d.ts.map +1 -1
- package/dist/resources/trademarks.js +132 -5
- package/dist/resources/trademarks.js.map +1 -1
- package/dist/resources/watches.d.ts +68 -9
- package/dist/resources/watches.d.ts.map +1 -1
- package/dist/resources/watches.js +111 -12
- package/dist/resources/watches.js.map +1 -1
- package/dist/resources/webhooks.d.ts +57 -0
- package/dist/resources/webhooks.d.ts.map +1 -0
- package/dist/resources/webhooks.js +86 -0
- package/dist/resources/webhooks.js.map +1 -0
- package/dist/types.d.ts +2781 -239
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/webhooks.d.ts +57 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +76 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +9 -3
- package/dist/resources/platform.d.ts +0 -29
- package/dist/resources/platform.d.ts.map +0 -1
- package/dist/resources/platform.js +0 -50
- package/dist/resources/platform.js.map +0 -1
- package/dist/resources/search.d.ts +0 -27
- package/dist/resources/search.d.ts.map +0 -1
- package/dist/resources/search.js +0 -36
- package/dist/resources/search.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { createList } from '../pagination.js';
|
|
3
|
+
export class Deadlines extends BaseResource {
|
|
4
|
+
/**
|
|
5
|
+
* Compute trademark maintenance deadlines for one or more marks.
|
|
6
|
+
*
|
|
7
|
+
* Scope: `trademarks:read`. Billed as 1 unit per item.
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const results = await signa.deadlines.compute({
|
|
11
|
+
* items: [{
|
|
12
|
+
* jurisdiction: 'US',
|
|
13
|
+
* filing_route: 'national',
|
|
14
|
+
* status: 'registered',
|
|
15
|
+
* filing_date: '2019-01-15',
|
|
16
|
+
* registration_date: '2020-03-10',
|
|
17
|
+
* }],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
async compute(body, options) {
|
|
22
|
+
const response = await this._post('/v1/deadlines/compute', body, options);
|
|
23
|
+
return createList({ ...response, has_more: false }, () => Promise.resolve({ ...response, data: [], has_more: false }));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=deadlines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deadlines.js","sourceRoot":"","sources":["../../src/resources/deadlines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAQ9D,MAAM,OAAO,SAAU,SAAQ,YAAY;IACzC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,OAAO,CACX,IAA2B,EAC3B,OAAwB;QAExB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAC/B,uBAAuB,EACvB,IAAI,EACJ,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,EAAE,GAAG,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CACvD,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { type SignaList } from '../pagination.js';
|
|
3
|
+
import type { EntityDetail, EntitySummary, EntityFamily, TrademarkSummary, EntityRetrieveParams, EntityListParams, EntityTrademarksParams, EntityFamilyParams, AnalyticsReport, RequestOptions } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resolved entities (PLN-118 "link, don't merge") — the cross-office identity
|
|
6
|
+
* layer over per-office owner clusters. An `ent_*` id is either a RESOLVED
|
|
7
|
+
* (materialized) entity or a DERIVED `ent_<owner-uuid>` singleton; the API
|
|
8
|
+
* resolves both, so a derived id of a since-linked owner returns the real
|
|
9
|
+
* entity (its `id` may differ from the one requested).
|
|
10
|
+
*/
|
|
11
|
+
export declare class Entities extends BaseResource {
|
|
12
|
+
analytics(id: string, options?: RequestOptions): Promise<AnalyticsReport>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a single entity by ID.
|
|
15
|
+
*
|
|
16
|
+
* Resolved entities embed `members[]` with per-link evidence; derived
|
|
17
|
+
* singletons carry a member-of-one. Passing a derived `ent_<owner-uuid>` for
|
|
18
|
+
* an owner that has since been linked resolves to the real entity.
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const entity = await signa.entities.retrieve('ent_abc123');
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
retrieve(id: string, _params?: EntityRetrieveParams, options?: RequestOptions): Promise<EntityDetail>;
|
|
25
|
+
/**
|
|
26
|
+
* List + search resolved entities. OpenSearch-backed for both text and
|
|
27
|
+
* filter-only queries.
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const entities = await signa.entities.list({ q: '8x8', publicly_traded: true });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(params?: EntityListParams, options?: RequestOptions): Promise<SignaList<EntitySummary>>;
|
|
34
|
+
/**
|
|
35
|
+
* List trademarks across ALL member owners of the entity (summary tier).
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const tms = await signa.entities.trademarks('ent_abc123', { status_primary: 'active' });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
trademarks(id: string, params?: EntityTrademarksParams, options?: RequestOptions): Promise<SignaList<TrademarkSummary>>;
|
|
42
|
+
/**
|
|
43
|
+
* GLEIF-curated direct family — parent + direct children (1 level). Sourced
|
|
44
|
+
* from GLEIF Level 2; an absent edge does not imply no relationship (see the
|
|
45
|
+
* response `coverage_caveat`).
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const family = await signa.entities.family('ent_abc123');
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
family(id: string, _params?: EntityFamilyParams, options?: RequestOptions): Promise<EntityFamily>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/resources/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,YAAY;IAClC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAK/E;;;;;;;;;;OAUG;IACG,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC;IAKxB;;;;;;;OAOG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAQpC;;;;;;OAMG;IACG,UAAU,CACd,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAavC;;;;;;;;OAQG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,kBAAkB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC;CAIzB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { createList } from '../pagination.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolved entities (PLN-118 "link, don't merge") — the cross-office identity
|
|
5
|
+
* layer over per-office owner clusters. An `ent_*` id is either a RESOLVED
|
|
6
|
+
* (materialized) entity or a DERIVED `ent_<owner-uuid>` singleton; the API
|
|
7
|
+
* resolves both, so a derived id of a since-linked owner returns the real
|
|
8
|
+
* entity (its `id` may differ from the one requested).
|
|
9
|
+
*/
|
|
10
|
+
export class Entities extends BaseResource {
|
|
11
|
+
async analytics(id, options) {
|
|
12
|
+
this._validateId(id);
|
|
13
|
+
return this._get(`/v1/entities/${encodeURIComponent(id)}/analytics`, undefined, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a single entity by ID.
|
|
17
|
+
*
|
|
18
|
+
* Resolved entities embed `members[]` with per-link evidence; derived
|
|
19
|
+
* singletons carry a member-of-one. Passing a derived `ent_<owner-uuid>` for
|
|
20
|
+
* an owner that has since been linked resolves to the real entity.
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const entity = await signa.entities.retrieve('ent_abc123');
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
async retrieve(id, _params, options) {
|
|
27
|
+
this._validateId(id);
|
|
28
|
+
return this._get(`/v1/entities/${encodeURIComponent(id)}`, undefined, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* List + search resolved entities. OpenSearch-backed for both text and
|
|
32
|
+
* filter-only queries.
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const entities = await signa.entities.list({ q: '8x8', publicly_traded: true });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
async list(params, options) {
|
|
39
|
+
const fetchPage = async (cursor) => {
|
|
40
|
+
return this._getListResponse('/v1/entities', { ...params, cursor }, options);
|
|
41
|
+
};
|
|
42
|
+
const firstPage = await fetchPage(params?.cursor);
|
|
43
|
+
return createList(firstPage, fetchPage);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* List trademarks across ALL member owners of the entity (summary tier).
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const tms = await signa.entities.trademarks('ent_abc123', { status_primary: 'active' });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
async trademarks(id, params, options) {
|
|
53
|
+
this._validateId(id);
|
|
54
|
+
const fetchPage = async (cursor) => {
|
|
55
|
+
return this._getListResponse(`/v1/entities/${encodeURIComponent(id)}/trademarks`, { ...params, cursor }, options);
|
|
56
|
+
};
|
|
57
|
+
const firstPage = await fetchPage(params?.cursor);
|
|
58
|
+
return createList(firstPage, fetchPage);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GLEIF-curated direct family — parent + direct children (1 level). Sourced
|
|
62
|
+
* from GLEIF Level 2; an absent edge does not imply no relationship (see the
|
|
63
|
+
* response `coverage_caveat`).
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const family = await signa.entities.family('ent_abc123');
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
async family(id, _params, options) {
|
|
70
|
+
this._validateId(id);
|
|
71
|
+
return this._get(`/v1/entities/${encodeURIComponent(id)}/family`, undefined, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/resources/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAc9D;;;;;;GAMG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;IACxC,KAAK,CAAC,SAAS,CAAC,EAAU,EAAE,OAAwB;QAClD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,IAAI,CAAkB,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,OAA8B,EAC9B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,IAAI,CAAe,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,MAAyB,EACzB,OAAwB;QAExB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;YAC1C,OAAO,IAAI,CAAC,gBAAgB,CAAgB,cAAc,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;QAC9F,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,CACd,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;YAC1C,OAAO,IAAI,CAAC,gBAAgB,CAC1B,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,aAAa,EACnD,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EACrB,OAAO,CACR,CAAC;QACJ,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,OAA4B,EAC5B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,IAAI,CAAe,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;CACF"}
|
|
@@ -4,7 +4,7 @@ import type { OrgEvent, OrgEventDetail, OrgEventListParams, RequestOptions } fro
|
|
|
4
4
|
export declare class Events extends BaseResource {
|
|
5
5
|
/** List organization events. */
|
|
6
6
|
list(params?: OrgEventListParams, options?: RequestOptions): Promise<SignaList<OrgEvent>>;
|
|
7
|
-
/** Retrieve an event with before/after diffs. IDs are
|
|
8
|
-
retrieve(id:
|
|
7
|
+
/** Retrieve an event with before/after diffs. IDs are evt_-prefixed strings. */
|
|
8
|
+
retrieve(id: string, options?: RequestOptions): Promise<OrgEventDetail>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,MAAO,SAAQ,YAAY;IACtC,gCAAgC;IAC1B,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAe/F,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,MAAO,SAAQ,YAAY;IACtC,gCAAgC;IAC1B,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAe/F,gFAAgF;IAC1E,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;CAM9E"}
|
package/dist/resources/events.js
CHANGED
|
@@ -7,12 +7,12 @@ export class Events extends BaseResource {
|
|
|
7
7
|
const response = await this._getListResponse('/v1/events', params, options);
|
|
8
8
|
return createList(response, (cursor) => this._getListResponse('/v1/events', { ...params, cursor }, options));
|
|
9
9
|
}
|
|
10
|
-
/** Retrieve an event with before/after diffs. IDs are
|
|
10
|
+
/** Retrieve an event with before/after diffs. IDs are evt_-prefixed strings. */
|
|
11
11
|
async retrieve(id, options) {
|
|
12
12
|
if (id === undefined || id === null || id === '') {
|
|
13
13
|
throw new SignaError('id is required and must be a non-empty string');
|
|
14
14
|
}
|
|
15
|
-
return this._get(`/v1/events/${
|
|
15
|
+
return this._get(`/v1/events/${id}`, undefined, options);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,MAAO,SAAQ,YAAY;IACtC,gCAAgC;IAChC,KAAK,CAAC,IAAI,CAAC,MAA2B,EAAE,OAAwB;QAC9D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAC1C,YAAY,EACZ,MAAiC,EACjC,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CACrC,IAAI,CAAC,gBAAgB,CACnB,YAAY,EACZ,EAAE,GAAG,MAAM,EAAE,MAAM,EAA6B,EAChD,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,MAAO,SAAQ,YAAY;IACtC,gCAAgC;IAChC,KAAK,CAAC,IAAI,CAAC,MAA2B,EAAE,OAAwB;QAC9D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAC1C,YAAY,EACZ,MAAiC,EACjC,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CACrC,IAAI,CAAC,gBAAgB,CACnB,YAAY,EACZ,EAAE,GAAG,MAAM,EAAE,MAAM,EAA6B,EAChD,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED,gFAAgF;IAChF,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,OAAwB;QACjD,IAAI,EAAE,KAAK,SAAS,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YACjD,MAAM,IAAI,UAAU,CAAC,+CAA+C,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAiB,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { type SignaList } from '../pagination.js';
|
|
3
|
+
import type { Feedback, FeedbackCreateParams, FeedbackListParams, RequestOptions } from '../types.js';
|
|
4
|
+
export declare class FeedbackResource extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submit structured customer feedback (data issue, bug, feature request, or
|
|
7
|
+
* other). Free (never billed), org-scoped, idempotent via the standard
|
|
8
|
+
* Idempotency-Key header (auto-injected by the SDK).
|
|
9
|
+
*/
|
|
10
|
+
create(body: FeedbackCreateParams, options?: RequestOptions): Promise<Feedback>;
|
|
11
|
+
/**
|
|
12
|
+
* List feedback submitted by the authenticated organization. Cursor-paginated,
|
|
13
|
+
* newest-first. Filterable by type, status, and created-at range.
|
|
14
|
+
*/
|
|
15
|
+
list(params?: FeedbackListParams, options?: RequestOptions): Promise<SignaList<Feedback>>;
|
|
16
|
+
/** Retrieve a single feedback item by its fbk_-prefixed ID. */
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): Promise<Feedback>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../src/resources/feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,gBAAiB,SAAQ,YAAY;IAChD;;;;OAIG;IACG,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrF;;;OAGG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAe/F,+DAA+D;IACzD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;CAMxE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { createList } from '../pagination.js';
|
|
3
|
+
import { SignaError } from '../errors.js';
|
|
4
|
+
export class FeedbackResource extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submit structured customer feedback (data issue, bug, feature request, or
|
|
7
|
+
* other). Free (never billed), org-scoped, idempotent via the standard
|
|
8
|
+
* Idempotency-Key header (auto-injected by the SDK).
|
|
9
|
+
*/
|
|
10
|
+
async create(body, options) {
|
|
11
|
+
return this._post('/v1/feedback', body, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* List feedback submitted by the authenticated organization. Cursor-paginated,
|
|
15
|
+
* newest-first. Filterable by type, status, and created-at range.
|
|
16
|
+
*/
|
|
17
|
+
async list(params, options) {
|
|
18
|
+
const response = await this._getListResponse('/v1/feedback', params, options);
|
|
19
|
+
return createList(response, (cursor) => this._getListResponse('/v1/feedback', { ...params, cursor }, options));
|
|
20
|
+
}
|
|
21
|
+
/** Retrieve a single feedback item by its fbk_-prefixed ID. */
|
|
22
|
+
async retrieve(id, options) {
|
|
23
|
+
if (id === undefined || id === null || id === '') {
|
|
24
|
+
throw new SignaError('id is required and must be a non-empty string');
|
|
25
|
+
}
|
|
26
|
+
return this._get(`/v1/feedback/${id}`, undefined, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/resources/feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,IAA0B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAW,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,MAA2B,EAAE,OAAwB;QAC9D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAC1C,cAAc,EACd,MAAiC,EACjC,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CACrC,IAAI,CAAC,gBAAgB,CACnB,cAAc,EACd,EAAE,GAAG,MAAM,EAAE,MAAM,EAA6B,EAChD,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED,+DAA+D;IAC/D,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,OAAwB;QACjD,IAAI,EAAE,KAAK,SAAS,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YACjD,MAAM,IAAI,UAAU,CAAC,+CAA+C,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAW,gBAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { BaseResource } from '../resource.js';
|
|
2
2
|
import { type SignaList } from '../pagination.js';
|
|
3
|
-
import type { Firm, FirmSummary, AttorneySummary, TrademarkSummary, FirmRetrieveParams, FirmListParams, FirmAttorneysParams, FirmTrademarksParams, RequestOptions } from '../types.js';
|
|
3
|
+
import type { Firm, FirmSummary, AttorneySummary, TrademarkSummary, FirmRetrieveParams, FirmListParams, FirmAttorneysParams, FirmTrademarksParams, RequestOptions, AnalyticsReport } from '../types.js';
|
|
4
4
|
export declare class Firms extends BaseResource {
|
|
5
|
+
analytics(id: string, options?: RequestOptions): Promise<AnalyticsReport>;
|
|
5
6
|
/**
|
|
6
7
|
* Retrieve a single firm by ID.
|
|
7
8
|
*
|
|
8
9
|
* ```typescript
|
|
9
|
-
* const firm = await signa.firms.retrieve('
|
|
10
|
-
* const firm = await signa.firms.retrieve('
|
|
10
|
+
* const firm = await signa.firms.retrieve('firm_abc123');
|
|
11
|
+
* const firm = await signa.firms.retrieve('firm_abc123', { include: ['attorneys'] });
|
|
11
12
|
* ```
|
|
12
13
|
*/
|
|
13
14
|
retrieve(id: string, params?: FirmRetrieveParams, options?: RequestOptions): Promise<Firm>;
|
|
@@ -23,8 +24,8 @@ export declare class Firms extends BaseResource {
|
|
|
23
24
|
* List a firm's attorneys.
|
|
24
25
|
*
|
|
25
26
|
* ```typescript
|
|
26
|
-
* const attorneys = await signa.firms.attorneys('
|
|
27
|
-
* const attorneys = await signa.firms.attorneys('
|
|
27
|
+
* const attorneys = await signa.firms.attorneys('firm_abc123');
|
|
28
|
+
* const attorneys = await signa.firms.attorneys('firm_abc123', { sort: '-trademark_count' });
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
30
31
|
attorneys(id: string, params?: FirmAttorneysParams, options?: RequestOptions): Promise<SignaList<AttorneySummary>>;
|
|
@@ -32,7 +33,7 @@ export declare class Firms extends BaseResource {
|
|
|
32
33
|
* List a firm's trademarks.
|
|
33
34
|
*
|
|
34
35
|
* ```typescript
|
|
35
|
-
* const tms = await signa.firms.trademarks('
|
|
36
|
+
* const tms = await signa.firms.trademarks('firm_abc123', { status: 'registered' });
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
39
|
trademarks(id: string, params?: FirmTrademarksParams, options?: RequestOptions): Promise<SignaList<TrademarkSummary>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firms.d.ts","sourceRoot":"","sources":["../../src/resources/firms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EACV,IAAI,EACJ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,
|
|
1
|
+
{"version":3,"file":"firms.d.ts","sourceRoot":"","sources":["../../src/resources/firms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EACV,IAAI,EACJ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,qBAAa,KAAM,SAAQ,YAAY;IAC/B,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAI/E;;;;;;;OAOG;IACG,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAQlC;;;;;;;OAOG;IACG,SAAS,CACb,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,mBAAmB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAatC;;;;;;OAMG;IACG,UAAU,CACd,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAYxC"}
|
package/dist/resources/firms.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { BaseResource } from '../resource.js';
|
|
2
2
|
import { createList } from '../pagination.js';
|
|
3
3
|
export class Firms extends BaseResource {
|
|
4
|
+
async analytics(id, options) {
|
|
5
|
+
this._validateId(id);
|
|
6
|
+
return this._get(`/v1/firms/${encodeURIComponent(id)}/analytics`, undefined, options);
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* Retrieve a single firm by ID.
|
|
6
10
|
*
|
|
7
11
|
* ```typescript
|
|
8
|
-
* const firm = await signa.firms.retrieve('
|
|
9
|
-
* const firm = await signa.firms.retrieve('
|
|
12
|
+
* const firm = await signa.firms.retrieve('firm_abc123');
|
|
13
|
+
* const firm = await signa.firms.retrieve('firm_abc123', { include: ['attorneys'] });
|
|
10
14
|
* ```
|
|
11
15
|
*/
|
|
12
16
|
async retrieve(id, params, options) {
|
|
@@ -33,8 +37,8 @@ export class Firms extends BaseResource {
|
|
|
33
37
|
* List a firm's attorneys.
|
|
34
38
|
*
|
|
35
39
|
* ```typescript
|
|
36
|
-
* const attorneys = await signa.firms.attorneys('
|
|
37
|
-
* const attorneys = await signa.firms.attorneys('
|
|
40
|
+
* const attorneys = await signa.firms.attorneys('firm_abc123');
|
|
41
|
+
* const attorneys = await signa.firms.attorneys('firm_abc123', { sort: '-trademark_count' });
|
|
38
42
|
* ```
|
|
39
43
|
*/
|
|
40
44
|
async attorneys(id, params, options) {
|
|
@@ -49,7 +53,7 @@ export class Firms extends BaseResource {
|
|
|
49
53
|
* List a firm's trademarks.
|
|
50
54
|
*
|
|
51
55
|
* ```typescript
|
|
52
|
-
* const tms = await signa.firms.trademarks('
|
|
56
|
+
* const tms = await signa.firms.trademarks('firm_abc123', { status: 'registered' });
|
|
53
57
|
* ```
|
|
54
58
|
*/
|
|
55
59
|
async trademarks(id, params, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firms.js","sourceRoot":"","sources":["../../src/resources/firms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"firms.js","sourceRoot":"","sources":["../../src/resources/firms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAc9D,MAAM,OAAO,KAAM,SAAQ,YAAY;IACrC,KAAK,CAAC,SAAS,CAAC,EAAU,EAAE,OAAwB;QAClD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,IAAI,CAAkB,aAAa,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IACD;;;;;;;OAOG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,MAA2B,EAC3B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,IAAI,CAAO,aAAa,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE;YAC5D,OAAO,EAAE,MAAM,EAAE,OAAO;SACzB,EAAE,OAAO,CAAC,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CACR,MAAuB,EACvB,OAAwB;QAExB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;YAC1C,OAAO,IAAI,CAAC,gBAAgB,CAAc,WAAW,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;QACzF,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,CACb,EAAU,EACV,MAA4B,EAC5B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;YAC1C,OAAO,IAAI,CAAC,gBAAgB,CAC1B,aAAa,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAC/C,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EACrB,OAAO,CACR,CAAC;QACJ,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,CACd,EAAU,EACV,MAA6B,EAC7B,OAAwB;QAExB,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;YAC1C,OAAO,IAAI,CAAC,gBAAgB,CAC1B,aAAa,kBAAkB,CAAC,EAAE,CAAC,aAAa,EAChD,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EACrB,OAAO,CACR,CAAC;QACJ,CAAC,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { type SignaList } from '../pagination.js';
|
|
3
|
+
import type { GoodsServicesTerm, GoodsServicesListParams, GoodsServicesSuggestParams, GoodsServicesSuggestResult, RequestOptions } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Goods & services — the pre-approved-terms catalog (Harmonised Database +
|
|
6
|
+
* USPTO ID Manual) and the AI-assisted G&S specification drafter.
|
|
7
|
+
*
|
|
8
|
+
* - {@link GoodsServices.list} — browse/search the term catalog. At least
|
|
9
|
+
* one of `q` or `class` must be provided.
|
|
10
|
+
* - {@link GoodsServices.suggest} — draft a filing-ready goods/services
|
|
11
|
+
* specification from a natural-language description. Pass `class_number`
|
|
12
|
+
* to scope the output to a single, already-chosen class.
|
|
13
|
+
*/
|
|
14
|
+
export declare class GoodsServices extends BaseResource {
|
|
15
|
+
/**
|
|
16
|
+
* Browse/search accepted goods & services terms. At least one of `q` or
|
|
17
|
+
* `class` must be provided.
|
|
18
|
+
*
|
|
19
|
+
* Scope: `trademarks:read`. Not billed (reference data).
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* // Scoped — autocomplete inside a class the user already selected
|
|
23
|
+
* const terms = await signa.goodsServices.list({ q: 'software', class: 9 });
|
|
24
|
+
*
|
|
25
|
+
* // Cross-class — "which classes accept this term?"
|
|
26
|
+
* const poster = await signa.goodsServices.list({ q: 'poster' });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(params: GoodsServicesListParams, options?: RequestOptions): Promise<SignaList<GoodsServicesTerm>>;
|
|
30
|
+
/**
|
|
31
|
+
* Draft a goods/services specification for a natural-language description.
|
|
32
|
+
* Returns ranked Nice classes with filing-ready wording per class, grounded
|
|
33
|
+
* in the pre-approved term catalog (Harmonised Database + USPTO ID Manual).
|
|
34
|
+
*
|
|
35
|
+
* Pass `class_number` to restrict the response to a single, already-chosen
|
|
36
|
+
* class (useful when refining wording inside a class the caller has already
|
|
37
|
+
* picked).
|
|
38
|
+
*
|
|
39
|
+
* Scope: `trademarks:read`. Billed as 2 credits.
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* // Full draft across all relevant classes
|
|
43
|
+
* const spec = await signa.goodsServices.suggest({
|
|
44
|
+
* description: 'e-commerce company selling sneakers',
|
|
45
|
+
* });
|
|
46
|
+
*
|
|
47
|
+
* // Refine wording for a known class
|
|
48
|
+
* const refined = await signa.goodsServices.suggest({
|
|
49
|
+
* description: 'running shoes',
|
|
50
|
+
* class_number: 25,
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
suggest(body: GoodsServicesSuggestParams, options?: RequestOptions): Promise<GoodsServicesSuggestResult>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=goods-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goods-services.d.ts","sourceRoot":"","sources":["../../src/resources/goods-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;;;;;;;;GASG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C;;;;;;;;;;;;;OAaG;IACG,IAAI,CACR,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAexC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,OAAO,CACX,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,0BAA0B,CAAC;CAOvC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { createList } from '../pagination.js';
|
|
3
|
+
/**
|
|
4
|
+
* Goods & services — the pre-approved-terms catalog (Harmonised Database +
|
|
5
|
+
* USPTO ID Manual) and the AI-assisted G&S specification drafter.
|
|
6
|
+
*
|
|
7
|
+
* - {@link GoodsServices.list} — browse/search the term catalog. At least
|
|
8
|
+
* one of `q` or `class` must be provided.
|
|
9
|
+
* - {@link GoodsServices.suggest} — draft a filing-ready goods/services
|
|
10
|
+
* specification from a natural-language description. Pass `class_number`
|
|
11
|
+
* to scope the output to a single, already-chosen class.
|
|
12
|
+
*/
|
|
13
|
+
export class GoodsServices extends BaseResource {
|
|
14
|
+
/**
|
|
15
|
+
* Browse/search accepted goods & services terms. At least one of `q` or
|
|
16
|
+
* `class` must be provided.
|
|
17
|
+
*
|
|
18
|
+
* Scope: `trademarks:read`. Not billed (reference data).
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* // Scoped — autocomplete inside a class the user already selected
|
|
22
|
+
* const terms = await signa.goodsServices.list({ q: 'software', class: 9 });
|
|
23
|
+
*
|
|
24
|
+
* // Cross-class — "which classes accept this term?"
|
|
25
|
+
* const poster = await signa.goodsServices.list({ q: 'poster' });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
async list(params, options) {
|
|
29
|
+
const response = await this._getListResponse('/v1/goods-services', params, options);
|
|
30
|
+
return createList(response, (cursor) => this._getListResponse('/v1/goods-services', { ...params, cursor }, options));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Draft a goods/services specification for a natural-language description.
|
|
34
|
+
* Returns ranked Nice classes with filing-ready wording per class, grounded
|
|
35
|
+
* in the pre-approved term catalog (Harmonised Database + USPTO ID Manual).
|
|
36
|
+
*
|
|
37
|
+
* Pass `class_number` to restrict the response to a single, already-chosen
|
|
38
|
+
* class (useful when refining wording inside a class the caller has already
|
|
39
|
+
* picked).
|
|
40
|
+
*
|
|
41
|
+
* Scope: `trademarks:read`. Billed as 2 credits.
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* // Full draft across all relevant classes
|
|
45
|
+
* const spec = await signa.goodsServices.suggest({
|
|
46
|
+
* description: 'e-commerce company selling sneakers',
|
|
47
|
+
* });
|
|
48
|
+
*
|
|
49
|
+
* // Refine wording for a known class
|
|
50
|
+
* const refined = await signa.goodsServices.suggest({
|
|
51
|
+
* description: 'running shoes',
|
|
52
|
+
* class_number: 25,
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
async suggest(body, options) {
|
|
57
|
+
return this._post('/v1/goods-services/suggest', body, options);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=goods-services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goods-services.js","sourceRoot":"","sources":["../../src/resources/goods-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAS9D;;;;;;;;;GASG;AACH,MAAM,OAAO,aAAc,SAAQ,YAAY;IAC7C;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,IAAI,CACR,MAA+B,EAC/B,OAAwB;QAExB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAC1C,oBAAoB,EACpB,MAA4C,EAC5C,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CACrC,IAAI,CAAC,gBAAgB,CACnB,oBAAoB,EACpB,EAAE,GAAG,MAAM,EAAE,MAAM,EAAwC,EAC3D,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,OAAO,CACX,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CACf,4BAA4B,EAC5B,IAAI,EACJ,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { type SignaList } from '../pagination.js';
|
|
3
|
+
import type { OppositionComputeParams, OppositionWindowComputation, RequestOptions } from '../types.js';
|
|
4
|
+
export declare class Oppositions extends BaseResource {
|
|
5
|
+
/**
|
|
6
|
+
* Compute opposition windows for one or more published marks.
|
|
7
|
+
*
|
|
8
|
+
* Scope: `trademarks:read`. Billed as 1 unit per item.
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const windows = await signa.oppositions.compute({
|
|
12
|
+
* items: [{ office: 'EM', publication_date: '2026-05-01' }],
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
compute(body: OppositionComputeParams, options?: RequestOptions): Promise<SignaList<OppositionWindowComputation>>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=oppositions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oppositions.d.ts","sourceRoot":"","sources":["../../src/resources/oppositions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EACV,uBAAuB,EAEvB,2BAA2B,EAC3B,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,WAAY,SAAQ,YAAY;IAC3C;;;;;;;;;;OAUG;IACG,OAAO,CACX,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;CAUnD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { createList } from '../pagination.js';
|
|
3
|
+
export class Oppositions extends BaseResource {
|
|
4
|
+
/**
|
|
5
|
+
* Compute opposition windows for one or more published marks.
|
|
6
|
+
*
|
|
7
|
+
* Scope: `trademarks:read`. Billed as 1 unit per item.
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const windows = await signa.oppositions.compute({
|
|
11
|
+
* items: [{ office: 'EM', publication_date: '2026-05-01' }],
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
async compute(body, options) {
|
|
16
|
+
const response = await this._post('/v1/oppositions/compute', body, options);
|
|
17
|
+
return createList({ ...response, has_more: false }, () => Promise.resolve({ ...response, data: [], has_more: false }));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=oppositions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oppositions.js","sourceRoot":"","sources":["../../src/resources/oppositions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAQ9D,MAAM,OAAO,WAAY,SAAQ,YAAY;IAC3C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,CACX,IAA6B,EAC7B,OAAwB;QAExB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAC/B,yBAAyB,EACzB,IAAI,EACJ,OAAO,CACR,CAAC;QACF,OAAO,UAAU,CAAC,EAAE,GAAG,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CACvD,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BaseResource } from '../resource.js';
|
|
2
|
+
import { type SignaList } from '../pagination.js';
|
|
3
|
+
import type { FetchConfig } from '../_internals/fetch-with-retry.js';
|
|
4
|
+
import type { Identity, Usage, ApiKey, ApiKeyWithRawKey, DeletedResponse, ApiKeyCreateParams, ApiKeyUpdateParams, RequestLog, RequestLogDetail, UsageSummaryParams, UsageSummaryResponse, CreditBalance, LogListParams, RequestOptions } from '../types.js';
|
|
5
|
+
declare class ApiKeys extends BaseResource {
|
|
6
|
+
/** Create a new API key. Returns the raw key once. */
|
|
7
|
+
create(body: ApiKeyCreateParams, options?: RequestOptions): Promise<ApiKeyWithRawKey>;
|
|
8
|
+
/** List organization's active API keys. */
|
|
9
|
+
list(options?: RequestOptions): Promise<SignaList<ApiKey>>;
|
|
10
|
+
/** Retrieve an API key. */
|
|
11
|
+
retrieve(id: string, options?: RequestOptions): Promise<ApiKey>;
|
|
12
|
+
/** Update an API key. */
|
|
13
|
+
update(id: string, body: ApiKeyUpdateParams, options?: RequestOptions): Promise<ApiKey>;
|
|
14
|
+
/** Revoke (soft-delete) an API key. */
|
|
15
|
+
revoke(id: string, options?: RequestOptions): Promise<DeletedResponse>;
|
|
16
|
+
/** Rotate an API key. Old key expires in 24h. Returns new raw key. */
|
|
17
|
+
rotate(id: string, options?: RequestOptions): Promise<ApiKeyWithRawKey>;
|
|
18
|
+
}
|
|
19
|
+
declare class Logs extends BaseResource {
|
|
20
|
+
/**
|
|
21
|
+
* List request logs for the org (paginated).
|
|
22
|
+
*
|
|
23
|
+
* Per-plan retention limits apply: `free` → 7 days, `starter` → 30 days,
|
|
24
|
+
* `beta`/`pro`/`enterprise` → 90 days. Defaults to the last 24 hours.
|
|
25
|
+
*/
|
|
26
|
+
list(params?: LogListParams, options?: RequestOptions): Promise<SignaList<RequestLog>>;
|
|
27
|
+
/** Retrieve a single request log by request_id. */
|
|
28
|
+
retrieve(requestId: string, options?: RequestOptions): Promise<RequestLogDetail>;
|
|
29
|
+
}
|
|
30
|
+
export declare class Organization extends BaseResource {
|
|
31
|
+
/** API key management. */
|
|
32
|
+
readonly apiKeys: ApiKeys;
|
|
33
|
+
/** Request log access. */
|
|
34
|
+
readonly logs: Logs;
|
|
35
|
+
constructor(config: FetchConfig);
|
|
36
|
+
/** Get the authenticated identity (org, plan, key info). */
|
|
37
|
+
me(options?: RequestOptions): Promise<Identity>;
|
|
38
|
+
/** Get billing period usage and rate limit info. */
|
|
39
|
+
usage(options?: RequestOptions): Promise<Usage>;
|
|
40
|
+
/**
|
|
41
|
+
* Get the pooled credit balance: the spendable balance, a breakdown of
|
|
42
|
+
* remaining credits by grant type (plan vs addon vs promo), and the
|
|
43
|
+
* per-grant expiry schedule in consumption order.
|
|
44
|
+
*/
|
|
45
|
+
credits(options?: RequestOptions): Promise<CreditBalance>;
|
|
46
|
+
/**
|
|
47
|
+
* Get daily usage breakdown from pre-aggregated rollups plus current
|
|
48
|
+
* billing period quota context.
|
|
49
|
+
*
|
|
50
|
+
* Named `usageSummary` (not nested under `usage`) because `usage` is a
|
|
51
|
+
* method on this class, not a namespace.
|
|
52
|
+
*/
|
|
53
|
+
usageSummary(params: UsageSummaryParams, options?: RequestOptions): Promise<UsageSummaryResponse>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,cAAM,OAAQ,SAAQ,YAAY;IAChC,sDAAsD;IAChD,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI3F,2CAA2C;IACrC,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAOhE,2BAA2B;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAKrE,yBAAyB;IACnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAK7F,uCAAuC;IACjC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAK5E,sEAAsE;IAChE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAI9E;AAED,cAAM,IAAK,SAAQ,YAAY;IAC7B;;;;;OAKG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAO5F,mDAAmD;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAQvF;AAED,qBAAa,YAAa,SAAQ,YAAY;IAC5C,0BAA0B;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;gBAER,MAAM,EAAE,WAAW;IAM/B,4DAA4D;IACtD,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,oDAAoD;IAC9C,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;IAIrD;;;;OAIG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAI/D;;;;;;OAMG;IACG,YAAY,CAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC;CAGjC"}
|