@signa-so/sdk 0.2.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 +180 -0
- package/dist/_internals/fetch-with-retry.d.ts +31 -0
- package/dist/_internals/fetch-with-retry.d.ts.map +1 -0
- package/dist/_internals/fetch-with-retry.js +113 -0
- package/dist/_internals/fetch-with-retry.js.map +1 -0
- package/dist/_internals/query-string.d.ts +10 -0
- package/dist/_internals/query-string.d.ts.map +1 -0
- package/dist/_internals/query-string.js +34 -0
- package/dist/_internals/query-string.js.map +1 -0
- package/dist/_internals/retry.d.ts +7 -0
- package/dist/_internals/retry.d.ts.map +1 -0
- package/dist/_internals/retry.js +23 -0
- package/dist/_internals/retry.js.map +1 -0
- package/dist/client.d.ts +68 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +104 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +66 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +141 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/api-types.d.ts +6219 -0
- package/dist/generated/api-types.d.ts.map +1 -0
- package/dist/generated/api-types.js +6 -0
- package/dist/generated/api-types.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/pagination.d.ts +60 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +98 -0
- package/dist/pagination.js.map +1 -0
- package/dist/resource.d.ts +27 -0
- package/dist/resource.d.ts.map +1 -0
- package/dist/resource.js +80 -0
- package/dist/resource.js.map +1 -0
- package/dist/resources/alerts.d.ts +20 -0
- package/dist/resources/alerts.d.ts.map +1 -0
- package/dist/resources/alerts.js +30 -0
- package/dist/resources/alerts.js.map +1 -0
- package/dist/resources/attorneys.d.ts +39 -0
- package/dist/resources/attorneys.d.ts.map +1 -0
- package/dist/resources/attorneys.js +57 -0
- package/dist/resources/attorneys.js.map +1 -0
- package/dist/resources/events.d.ts +10 -0
- package/dist/resources/events.d.ts.map +1 -0
- package/dist/resources/events.js +14 -0
- package/dist/resources/events.js.map +1 -0
- package/dist/resources/firms.d.ts +40 -0
- package/dist/resources/firms.d.ts.map +1 -0
- package/dist/resources/firms.js +61 -0
- package/dist/resources/firms.js.map +1 -0
- package/dist/resources/owners.d.ts +39 -0
- package/dist/resources/owners.d.ts.map +1 -0
- package/dist/resources/owners.js +60 -0
- package/dist/resources/owners.js.map +1 -0
- package/dist/resources/platform.d.ts +29 -0
- package/dist/resources/platform.d.ts.map +1 -0
- package/dist/resources/platform.js +46 -0
- package/dist/resources/platform.js.map +1 -0
- package/dist/resources/portfolios.d.ts +32 -0
- package/dist/resources/portfolios.d.ts.map +1 -0
- package/dist/resources/portfolios.js +49 -0
- package/dist/resources/portfolios.js.map +1 -0
- package/dist/resources/proceedings.d.ts +23 -0
- package/dist/resources/proceedings.d.ts.map +1 -0
- package/dist/resources/proceedings.js +30 -0
- package/dist/resources/proceedings.js.map +1 -0
- package/dist/resources/references.d.ts +106 -0
- package/dist/resources/references.d.ts.map +1 -0
- package/dist/resources/references.js +136 -0
- package/dist/resources/references.js.map +1 -0
- package/dist/resources/saved-searches.d.ts +22 -0
- package/dist/resources/saved-searches.d.ts.map +1 -0
- package/dist/resources/saved-searches.js +35 -0
- package/dist/resources/saved-searches.js.map +1 -0
- package/dist/resources/search.d.ts +27 -0
- package/dist/resources/search.d.ts.map +1 -0
- package/dist/resources/search.js +36 -0
- package/dist/resources/search.js.map +1 -0
- package/dist/resources/trademarks.d.ts +80 -0
- package/dist/resources/trademarks.d.ts.map +1 -0
- package/dist/resources/trademarks.js +117 -0
- package/dist/resources/trademarks.js.map +1 -0
- package/dist/resources/watches.d.ts +18 -0
- package/dist/resources/watches.d.ts.map +1 -0
- package/dist/resources/watches.js +31 -0
- package/dist/resources/watches.js.map +1 -0
- package/dist/types.d.ts +719 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/package.json +36 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
import type { components } from './generated/api-types.js';
|
|
2
|
+
/** Full trademark with all optional includes (retrieve response). */
|
|
3
|
+
export type Trademark = components['schemas']['TrademarkDetailResponse'];
|
|
4
|
+
/** Compact trademark in list responses. */
|
|
5
|
+
export type TrademarkSummary = components['schemas']['TrademarkSummary'];
|
|
6
|
+
/** Trademark event in history responses. */
|
|
7
|
+
export type Event = components['schemas']['EventListItem'];
|
|
8
|
+
/** Stats object shape returned by ?include=stats on attorney detail. */
|
|
9
|
+
export interface AttorneyStats {
|
|
10
|
+
trademark_count: number | null;
|
|
11
|
+
registered_count: number | null;
|
|
12
|
+
expired_count: number | null;
|
|
13
|
+
cancelled_count: number | null;
|
|
14
|
+
pending_count: number | null;
|
|
15
|
+
abandoned_count: number | null;
|
|
16
|
+
registration_rate: number | null;
|
|
17
|
+
abandonment_rate: number | null;
|
|
18
|
+
avg_prosecution_days: number | null;
|
|
19
|
+
jurisdiction_count: number | null;
|
|
20
|
+
earliest_filing: string | null;
|
|
21
|
+
latest_filing: string | null;
|
|
22
|
+
computed_at: string | null;
|
|
23
|
+
}
|
|
24
|
+
/** Stats object shape returned by ?include=stats on owner detail. */
|
|
25
|
+
export interface OwnerStats {
|
|
26
|
+
trademark_count: number | null;
|
|
27
|
+
registered_count: number | null;
|
|
28
|
+
expired_count: number | null;
|
|
29
|
+
cancelled_count: number | null;
|
|
30
|
+
pending_count: number | null;
|
|
31
|
+
abandoned_count: number | null;
|
|
32
|
+
registration_rate: number | null;
|
|
33
|
+
abandonment_rate: number | null;
|
|
34
|
+
jurisdiction_count: number | null;
|
|
35
|
+
earliest_filing: string | null;
|
|
36
|
+
latest_filing: string | null;
|
|
37
|
+
computed_at: string | null;
|
|
38
|
+
}
|
|
39
|
+
/** Stats object shape returned by ?include=stats on firm detail. */
|
|
40
|
+
export interface FirmStats {
|
|
41
|
+
trademark_count: number | null;
|
|
42
|
+
registered_count: number | null;
|
|
43
|
+
expired_count: number | null;
|
|
44
|
+
cancelled_count: number | null;
|
|
45
|
+
pending_count: number | null;
|
|
46
|
+
abandoned_count: number | null;
|
|
47
|
+
registration_rate: number | null;
|
|
48
|
+
abandonment_rate: number | null;
|
|
49
|
+
avg_prosecution_days: number | null;
|
|
50
|
+
jurisdiction_count: number | null;
|
|
51
|
+
earliest_filing: string | null;
|
|
52
|
+
latest_filing: string | null;
|
|
53
|
+
computed_at: string | null;
|
|
54
|
+
}
|
|
55
|
+
/** Specializations (top Nice classes + mark types). */
|
|
56
|
+
export interface Specializations {
|
|
57
|
+
top_classes: Array<{
|
|
58
|
+
class: number;
|
|
59
|
+
count: number;
|
|
60
|
+
pct: number;
|
|
61
|
+
}> | null;
|
|
62
|
+
top_mark_types: Array<{
|
|
63
|
+
type: string;
|
|
64
|
+
count: number;
|
|
65
|
+
pct: number;
|
|
66
|
+
}> | null;
|
|
67
|
+
}
|
|
68
|
+
/** Top client entry (for attorneys/firms). */
|
|
69
|
+
export interface TopClient {
|
|
70
|
+
owner_id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
count: number;
|
|
73
|
+
}
|
|
74
|
+
/** Top attorney entry (for owners). */
|
|
75
|
+
export interface TopAttorney {
|
|
76
|
+
attorney_id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
count: number;
|
|
79
|
+
}
|
|
80
|
+
/** Jurisdiction breakdown entry. */
|
|
81
|
+
export interface JurisdictionEntry {
|
|
82
|
+
office: string;
|
|
83
|
+
count: number;
|
|
84
|
+
registered?: number;
|
|
85
|
+
rate?: number;
|
|
86
|
+
avg_days?: number;
|
|
87
|
+
}
|
|
88
|
+
/** Yearly trend entry. */
|
|
89
|
+
export interface TrendEntry {
|
|
90
|
+
year: number;
|
|
91
|
+
filed: number;
|
|
92
|
+
registered: number;
|
|
93
|
+
abandoned: number;
|
|
94
|
+
}
|
|
95
|
+
/** Full owner detail (retrieve response). */
|
|
96
|
+
export type Owner = components['schemas']['OwnerResponse'] & {
|
|
97
|
+
trademark_count?: number | null;
|
|
98
|
+
registration_rate?: number | null;
|
|
99
|
+
latest_filing?: string | null;
|
|
100
|
+
related_entities?: {
|
|
101
|
+
parent: {
|
|
102
|
+
id: string;
|
|
103
|
+
object: 'owner';
|
|
104
|
+
canonical_name: string;
|
|
105
|
+
country_code: string | null;
|
|
106
|
+
entity_type: string | null;
|
|
107
|
+
} | null;
|
|
108
|
+
children: Array<{
|
|
109
|
+
id: string;
|
|
110
|
+
object: 'owner';
|
|
111
|
+
canonical_name: string;
|
|
112
|
+
country_code: string | null;
|
|
113
|
+
entity_type: string | null;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
stats?: OwnerStats;
|
|
117
|
+
specializations?: Specializations;
|
|
118
|
+
top_attorneys?: TopAttorney[];
|
|
119
|
+
jurisdictions?: JurisdictionEntry[];
|
|
120
|
+
trend?: TrendEntry[];
|
|
121
|
+
};
|
|
122
|
+
/** Compact owner in list responses. */
|
|
123
|
+
export type OwnerSummary = components['schemas']['OwnerSummary'] & {
|
|
124
|
+
trademark_count?: number | null;
|
|
125
|
+
registration_rate?: number | null;
|
|
126
|
+
latest_filing?: string | null;
|
|
127
|
+
};
|
|
128
|
+
/** Full attorney detail (retrieve response). */
|
|
129
|
+
export type Attorney = components['schemas']['AttorneyResponse'] & {
|
|
130
|
+
firm_id?: string | null;
|
|
131
|
+
email?: string | null;
|
|
132
|
+
phone?: string | null;
|
|
133
|
+
address?: unknown | null;
|
|
134
|
+
trademark_count?: number | null;
|
|
135
|
+
registration_rate?: number | null;
|
|
136
|
+
latest_filing?: string | null;
|
|
137
|
+
recent_trademarks?: Array<Record<string, unknown>>;
|
|
138
|
+
recent_trademarks_has_more?: boolean;
|
|
139
|
+
stats?: AttorneyStats;
|
|
140
|
+
specializations?: Specializations;
|
|
141
|
+
top_clients?: TopClient[];
|
|
142
|
+
jurisdictions?: JurisdictionEntry[];
|
|
143
|
+
trend?: TrendEntry[];
|
|
144
|
+
};
|
|
145
|
+
/** Compact attorney in list responses. */
|
|
146
|
+
export type AttorneySummary = components['schemas']['AttorneySummary'] & {
|
|
147
|
+
firm_id?: string | null;
|
|
148
|
+
trademark_count?: number | null;
|
|
149
|
+
registration_rate?: number | null;
|
|
150
|
+
latest_filing?: string | null;
|
|
151
|
+
};
|
|
152
|
+
/** Full firm detail (retrieve response). */
|
|
153
|
+
export interface Firm {
|
|
154
|
+
id: string;
|
|
155
|
+
object: 'firm';
|
|
156
|
+
canonical_name: string;
|
|
157
|
+
display_name: string;
|
|
158
|
+
attorney_count: number;
|
|
159
|
+
trademark_count: number;
|
|
160
|
+
registration_rate: number | null;
|
|
161
|
+
latest_filing: string | null;
|
|
162
|
+
created_at: string;
|
|
163
|
+
updated_at: string;
|
|
164
|
+
stats?: FirmStats;
|
|
165
|
+
specializations?: Specializations;
|
|
166
|
+
top_clients?: TopClient[];
|
|
167
|
+
jurisdictions?: JurisdictionEntry[];
|
|
168
|
+
trend?: TrendEntry[];
|
|
169
|
+
attorneys?: Array<{
|
|
170
|
+
id: string;
|
|
171
|
+
object: 'attorney';
|
|
172
|
+
canonical_name: string;
|
|
173
|
+
firm_name: string | null;
|
|
174
|
+
country_code: string | null;
|
|
175
|
+
trademark_count: number | null;
|
|
176
|
+
}>;
|
|
177
|
+
attorneys_has_more?: boolean;
|
|
178
|
+
livemode: boolean;
|
|
179
|
+
request_id: string;
|
|
180
|
+
}
|
|
181
|
+
/** Compact firm in list responses. */
|
|
182
|
+
export interface FirmSummary {
|
|
183
|
+
id: string;
|
|
184
|
+
object: 'firm';
|
|
185
|
+
canonical_name: string;
|
|
186
|
+
display_name: string;
|
|
187
|
+
attorney_count: number;
|
|
188
|
+
trademark_count: number;
|
|
189
|
+
registration_rate: number | null;
|
|
190
|
+
latest_filing: string | null;
|
|
191
|
+
created_at: string;
|
|
192
|
+
}
|
|
193
|
+
/** Proceeding in list responses. */
|
|
194
|
+
export type Proceeding = components['schemas']['Proceeding'];
|
|
195
|
+
/** Full proceeding detail with embedded trademark (retrieve response). */
|
|
196
|
+
export type ProceedingDetail = components['schemas']['ProceedingResponse'];
|
|
197
|
+
/** Request body for POST /v1/trademarks/batch. */
|
|
198
|
+
export type TrademarkBatchBody = components['schemas']['TrademarkBatchRequest'];
|
|
199
|
+
/** Response shape for POST /v1/trademarks/batch (non-paginated). */
|
|
200
|
+
export type TrademarkBatchResponse = components['schemas']['TrademarkBatchResponse'];
|
|
201
|
+
/** Version-level change entry. */
|
|
202
|
+
export type TrademarkChange = components['schemas']['TrademarkChange'];
|
|
203
|
+
/** Mark-to-mark relationship entry. */
|
|
204
|
+
export type TrademarkRelationship = components['schemas']['TrademarkRelated'];
|
|
205
|
+
/** Trademark autocomplete suggestion entry. */
|
|
206
|
+
export type TrademarkSuggestion = components['schemas']['TrademarkSuggestion'];
|
|
207
|
+
/** Attorney client (owner) entry with shared count. */
|
|
208
|
+
export type AttorneyClient = components['schemas']['AttorneyClient'];
|
|
209
|
+
/** Search result item (V2 with match explanations and faceted aggregations). */
|
|
210
|
+
export type SearchV2Result = components['schemas']['SearchResultV2'];
|
|
211
|
+
/** Cross-entity suggestion item. */
|
|
212
|
+
export type CrossEntitySuggestion = components['schemas']['CrossEntitySuggestion'];
|
|
213
|
+
/** Goods & services term (Nice classification). */
|
|
214
|
+
export type GoodsServicesTerm = components['schemas']['GoodsServicesTerm'];
|
|
215
|
+
/** Deadline rules for a jurisdiction. */
|
|
216
|
+
export type DeadlineRules = components['schemas']['DeadlineRulesDetailResponse'];
|
|
217
|
+
/** Vienna design code. */
|
|
218
|
+
export type DesignCode = components['schemas']['DesignCode'];
|
|
219
|
+
/** Vienna design code with children (retrieve response). */
|
|
220
|
+
export type DesignCodeDetail = components['schemas']['DesignCodeDetailResponse'];
|
|
221
|
+
/** Nice classification. */
|
|
222
|
+
export type Classification = components['schemas']['Classification'];
|
|
223
|
+
/** Nice classification with terms (retrieve response). */
|
|
224
|
+
export type ClassificationDetail = components['schemas']['ClassificationDetailResponse'];
|
|
225
|
+
/** Trademark office. */
|
|
226
|
+
export type Office = components['schemas']['Office'];
|
|
227
|
+
/** Trademark office with detail (retrieve response). */
|
|
228
|
+
export type OfficeDetail = components['schemas']['OfficeDetailResponse'];
|
|
229
|
+
/** Jurisdiction. */
|
|
230
|
+
export type Jurisdiction = components['schemas']['Jurisdiction'];
|
|
231
|
+
/** Jurisdiction with detail (retrieve response). */
|
|
232
|
+
export type JurisdictionDetail = components['schemas']['JurisdictionDetailResponse'];
|
|
233
|
+
/** Canonical status with office mappings. */
|
|
234
|
+
export type Status = components['schemas']['StatusMapping'];
|
|
235
|
+
/** Event type code. */
|
|
236
|
+
export type EventType = components['schemas']['EventTypeMapping'];
|
|
237
|
+
/** Portfolio (retrieve response). */
|
|
238
|
+
export type Portfolio = components['schemas']['Portfolio'];
|
|
239
|
+
/** Saved search (retrieve response). */
|
|
240
|
+
export type SavedSearch = components['schemas']['SavedSearch'];
|
|
241
|
+
/** Watch (retrieve response). */
|
|
242
|
+
export type Watch = components['schemas']['Watch'];
|
|
243
|
+
/** Alert (retrieve response). */
|
|
244
|
+
export type Alert = components['schemas']['Alert'];
|
|
245
|
+
/** Org-level event list item. */
|
|
246
|
+
export type OrgEvent = components['schemas']['EventListItem'];
|
|
247
|
+
/** Org-level event detail (with changes). */
|
|
248
|
+
export type OrgEventDetail = components['schemas']['EventDetail'];
|
|
249
|
+
/** Identity (GET /me). */
|
|
250
|
+
export type Identity = components['schemas']['Identity'];
|
|
251
|
+
/** Usage (GET /usage). */
|
|
252
|
+
export type Usage = components['schemas']['Usage'];
|
|
253
|
+
/** API key (list/retrieve). */
|
|
254
|
+
export type ApiKey = components['schemas']['ApiKey'];
|
|
255
|
+
/** API key with the raw key value (returned on create/rotate only). */
|
|
256
|
+
export type ApiKeyWithRawKey = components['schemas']['ApiKeyWithKey'];
|
|
257
|
+
/** Generic delete confirmation. */
|
|
258
|
+
export interface DeletedResponse {
|
|
259
|
+
id: string;
|
|
260
|
+
object: string;
|
|
261
|
+
deleted: true;
|
|
262
|
+
livemode: boolean;
|
|
263
|
+
request_id: string;
|
|
264
|
+
}
|
|
265
|
+
/** Trademark source provenance (from raw_record_version). */
|
|
266
|
+
export type TrademarkSource = components['schemas']['TrademarkSourceResponse'];
|
|
267
|
+
/** Trademark coverage (Madrid IR designation). */
|
|
268
|
+
export type TrademarkCoverage = components['schemas']['TrademarkCoverage'];
|
|
269
|
+
/** Trademark proceeding (with parties) as returned by /trademarks/{id}/proceedings. */
|
|
270
|
+
export type TrademarkProceeding = components['schemas']['TrademarkProceedingSub'];
|
|
271
|
+
/** Owner related entity (GLEIF corporate hierarchy). */
|
|
272
|
+
export type OwnerRelated = components['schemas']['OwnerRelated'];
|
|
273
|
+
/** Search metadata (timing, totals). */
|
|
274
|
+
export interface SearchMeta {
|
|
275
|
+
took_ms: number;
|
|
276
|
+
timed_out?: boolean;
|
|
277
|
+
total?: {
|
|
278
|
+
value: number;
|
|
279
|
+
relation: string;
|
|
280
|
+
};
|
|
281
|
+
index_lag_ms?: number | null;
|
|
282
|
+
}
|
|
283
|
+
/** API error body (RFC 9457-inspired). */
|
|
284
|
+
export interface APIErrorBody {
|
|
285
|
+
type: string;
|
|
286
|
+
title: string;
|
|
287
|
+
status: number;
|
|
288
|
+
detail: string;
|
|
289
|
+
instance?: string;
|
|
290
|
+
}
|
|
291
|
+
export interface TrademarkRetrieveParams {
|
|
292
|
+
/** Comma-separated or array of relations to include. */
|
|
293
|
+
include?: Array<'owners' | 'classifications' | 'attorneys' | 'media' | 'priorities' | 'proceedings' | 'design_codes' | 'madrid' | 'history'>;
|
|
294
|
+
/** Sparse fieldset — comma-separated field names to return. */
|
|
295
|
+
fields?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface TrademarkListParams {
|
|
298
|
+
status_primary?: string;
|
|
299
|
+
'status_stage[]'?: string | string[];
|
|
300
|
+
'status_reason[]'?: string | string[];
|
|
301
|
+
'challenge_states[]'?: string | string[];
|
|
302
|
+
'mark_feature_type[]'?: string | string[];
|
|
303
|
+
'mark_legal_category[]'?: string | string[];
|
|
304
|
+
right_kind?: string;
|
|
305
|
+
'filing_route[]'?: string | string[];
|
|
306
|
+
'scope_kind[]'?: string | string[];
|
|
307
|
+
application_number?: string;
|
|
308
|
+
registration_number?: string;
|
|
309
|
+
ir_number?: string;
|
|
310
|
+
office?: string;
|
|
311
|
+
'jurisdictions[]'?: string | string[];
|
|
312
|
+
'offices[]'?: string | string[];
|
|
313
|
+
owner_country?: string;
|
|
314
|
+
'nice_classes[]'?: string | string[];
|
|
315
|
+
'vienna_codes[]'?: string | string[];
|
|
316
|
+
'filing_date[gte]'?: string;
|
|
317
|
+
'filing_date[lt]'?: string;
|
|
318
|
+
'registration_date[gte]'?: string;
|
|
319
|
+
'registration_date[lt]'?: string;
|
|
320
|
+
'expiry_date[gte]'?: string;
|
|
321
|
+
'expiry_date[lt]'?: string;
|
|
322
|
+
'renewal_due_date[gte]'?: string;
|
|
323
|
+
'renewal_due_date[lt]'?: string;
|
|
324
|
+
'publication_date[gte]'?: string;
|
|
325
|
+
'publication_date[lt]'?: string;
|
|
326
|
+
'termination_date[gte]'?: string;
|
|
327
|
+
'termination_date[lt]'?: string;
|
|
328
|
+
'updated_at[gte]'?: string;
|
|
329
|
+
'updated_at[lt]'?: string;
|
|
330
|
+
owner_id?: string;
|
|
331
|
+
owner_name?: string;
|
|
332
|
+
attorney_id?: string;
|
|
333
|
+
firm_id?: string;
|
|
334
|
+
has_media?: string;
|
|
335
|
+
has_proceedings?: string;
|
|
336
|
+
is_madrid?: string;
|
|
337
|
+
is_retracted?: string;
|
|
338
|
+
is_series_mark?: string;
|
|
339
|
+
sort?: string;
|
|
340
|
+
limit?: number;
|
|
341
|
+
cursor?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface TrademarkHistoryParams {
|
|
344
|
+
event_type?: string;
|
|
345
|
+
event_scope?: string;
|
|
346
|
+
'event_date[gte]'?: string;
|
|
347
|
+
'event_date[lt]'?: string;
|
|
348
|
+
limit?: number;
|
|
349
|
+
cursor?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface TrademarkChangesParams {
|
|
352
|
+
changed_field?: string;
|
|
353
|
+
limit?: number;
|
|
354
|
+
cursor?: string;
|
|
355
|
+
}
|
|
356
|
+
export interface TrademarkRelatedParams {
|
|
357
|
+
relationship_type?: string;
|
|
358
|
+
limit?: number;
|
|
359
|
+
cursor?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface TrademarkSuggestParams {
|
|
362
|
+
q: string;
|
|
363
|
+
'jurisdictions[]'?: string | string[];
|
|
364
|
+
'nice_classes[]'?: number | number[];
|
|
365
|
+
'status_stage[]'?: string | string[];
|
|
366
|
+
}
|
|
367
|
+
export interface TrademarkCoverageParams {
|
|
368
|
+
protection_status?: string;
|
|
369
|
+
limit?: number;
|
|
370
|
+
cursor?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface TrademarkProceedingsParams {
|
|
373
|
+
proceeding_type?: string;
|
|
374
|
+
status?: string;
|
|
375
|
+
limit?: number;
|
|
376
|
+
cursor?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface OwnerRelatedParams {
|
|
379
|
+
limit?: number;
|
|
380
|
+
cursor?: string;
|
|
381
|
+
}
|
|
382
|
+
export interface OwnerRetrieveParams {
|
|
383
|
+
include?: Array<'related_entities' | 'stats' | 'specializations' | 'top_attorneys' | 'jurisdictions' | 'trend'>;
|
|
384
|
+
}
|
|
385
|
+
export interface OwnerListParams {
|
|
386
|
+
q?: string;
|
|
387
|
+
country_code?: string;
|
|
388
|
+
entity_type?: string;
|
|
389
|
+
sort?: string;
|
|
390
|
+
jurisdiction?: string;
|
|
391
|
+
nice_class?: number;
|
|
392
|
+
active_since?: string;
|
|
393
|
+
min_filings?: number;
|
|
394
|
+
limit?: number;
|
|
395
|
+
cursor?: string;
|
|
396
|
+
}
|
|
397
|
+
export interface OwnerTrademarksParams {
|
|
398
|
+
status?: string;
|
|
399
|
+
jurisdiction_code?: string;
|
|
400
|
+
nice_class?: number;
|
|
401
|
+
limit?: number;
|
|
402
|
+
cursor?: string;
|
|
403
|
+
}
|
|
404
|
+
export interface AttorneyRetrieveParams {
|
|
405
|
+
include?: Array<'recent_trademarks' | 'stats' | 'specializations' | 'top_clients' | 'jurisdictions' | 'trend'>;
|
|
406
|
+
}
|
|
407
|
+
export interface AttorneyListParams {
|
|
408
|
+
q?: string;
|
|
409
|
+
firm?: string;
|
|
410
|
+
firm_id?: string;
|
|
411
|
+
country_code?: string;
|
|
412
|
+
sort?: string;
|
|
413
|
+
jurisdiction?: string;
|
|
414
|
+
nice_class?: number;
|
|
415
|
+
active_since?: string;
|
|
416
|
+
min_filings?: number;
|
|
417
|
+
limit?: number;
|
|
418
|
+
cursor?: string;
|
|
419
|
+
}
|
|
420
|
+
export interface AttorneyTrademarksParams {
|
|
421
|
+
status?: string;
|
|
422
|
+
jurisdiction_code?: string;
|
|
423
|
+
nice_class?: number;
|
|
424
|
+
limit?: number;
|
|
425
|
+
cursor?: string;
|
|
426
|
+
}
|
|
427
|
+
export interface AttorneyClientsParams {
|
|
428
|
+
limit?: number;
|
|
429
|
+
cursor?: string;
|
|
430
|
+
}
|
|
431
|
+
export interface FirmRetrieveParams {
|
|
432
|
+
include?: Array<'stats' | 'specializations' | 'top_clients' | 'jurisdictions' | 'trend' | 'attorneys'>;
|
|
433
|
+
}
|
|
434
|
+
export interface FirmListParams {
|
|
435
|
+
q?: string;
|
|
436
|
+
min_attorneys?: number;
|
|
437
|
+
min_filings?: number;
|
|
438
|
+
jurisdiction?: string;
|
|
439
|
+
nice_class?: number;
|
|
440
|
+
sort?: string;
|
|
441
|
+
limit?: number;
|
|
442
|
+
cursor?: string;
|
|
443
|
+
}
|
|
444
|
+
export interface FirmAttorneysParams {
|
|
445
|
+
sort?: string;
|
|
446
|
+
limit?: number;
|
|
447
|
+
cursor?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface FirmTrademarksParams {
|
|
450
|
+
status?: string;
|
|
451
|
+
jurisdiction_code?: string;
|
|
452
|
+
limit?: number;
|
|
453
|
+
cursor?: string;
|
|
454
|
+
}
|
|
455
|
+
export interface ProceedingListParams {
|
|
456
|
+
trademark_id?: string;
|
|
457
|
+
type?: string;
|
|
458
|
+
status?: string;
|
|
459
|
+
q?: string;
|
|
460
|
+
office_code?: string;
|
|
461
|
+
'filed_date[gte]'?: string;
|
|
462
|
+
'filed_date[lt]'?: string;
|
|
463
|
+
'decision_date[gte]'?: string;
|
|
464
|
+
'decision_date[lt]'?: string;
|
|
465
|
+
limit?: number;
|
|
466
|
+
cursor?: string;
|
|
467
|
+
}
|
|
468
|
+
export interface ClassificationListParams {
|
|
469
|
+
q?: string;
|
|
470
|
+
}
|
|
471
|
+
export interface StatusListParams {
|
|
472
|
+
office?: string;
|
|
473
|
+
}
|
|
474
|
+
export interface SearchV2Body {
|
|
475
|
+
query: string;
|
|
476
|
+
strategies?: ('exact' | 'phonetic' | 'fuzzy' | 'prefix')[];
|
|
477
|
+
filters?: {
|
|
478
|
+
status_primary?: string;
|
|
479
|
+
status_stage?: string[];
|
|
480
|
+
status_reason?: string[];
|
|
481
|
+
challenge_states?: string[];
|
|
482
|
+
mark_feature_type?: string[];
|
|
483
|
+
mark_legal_category?: string[];
|
|
484
|
+
right_kind?: string;
|
|
485
|
+
filing_route?: string[];
|
|
486
|
+
scope_kind?: string[];
|
|
487
|
+
jurisdictions?: string[];
|
|
488
|
+
offices?: string[];
|
|
489
|
+
owner_country?: string;
|
|
490
|
+
nice_classes?: number[];
|
|
491
|
+
vienna_codes?: string[];
|
|
492
|
+
goods_services_text?: string;
|
|
493
|
+
filing_date?: {
|
|
494
|
+
gte?: string;
|
|
495
|
+
lt?: string;
|
|
496
|
+
};
|
|
497
|
+
registration_date?: {
|
|
498
|
+
gte?: string;
|
|
499
|
+
lt?: string;
|
|
500
|
+
};
|
|
501
|
+
expiry_date?: {
|
|
502
|
+
gte?: string;
|
|
503
|
+
lt?: string;
|
|
504
|
+
};
|
|
505
|
+
renewal_due_date?: {
|
|
506
|
+
gte?: string;
|
|
507
|
+
lt?: string;
|
|
508
|
+
};
|
|
509
|
+
publication_date?: {
|
|
510
|
+
gte?: string;
|
|
511
|
+
lt?: string;
|
|
512
|
+
};
|
|
513
|
+
termination_date?: {
|
|
514
|
+
gte?: string;
|
|
515
|
+
lt?: string;
|
|
516
|
+
};
|
|
517
|
+
updated_at?: {
|
|
518
|
+
gte?: string;
|
|
519
|
+
lt?: string;
|
|
520
|
+
};
|
|
521
|
+
owner_id?: string;
|
|
522
|
+
owner_name?: string;
|
|
523
|
+
attorney_id?: string;
|
|
524
|
+
firm_id?: string;
|
|
525
|
+
application_number?: string;
|
|
526
|
+
registration_number?: string;
|
|
527
|
+
ir_number?: string;
|
|
528
|
+
office?: string;
|
|
529
|
+
origin_office_code?: string;
|
|
530
|
+
has_media?: boolean;
|
|
531
|
+
has_proceedings?: boolean;
|
|
532
|
+
is_madrid?: boolean;
|
|
533
|
+
is_retracted?: boolean;
|
|
534
|
+
is_series_mark?: boolean;
|
|
535
|
+
};
|
|
536
|
+
options?: {
|
|
537
|
+
aggregations?: ('status_stage' | 'office_code' | 'jurisdiction_code' | 'nice_classes' | 'filing_year' | 'mark_feature_type' | 'mark_legal_category' | 'filing_route' | 'right_kind' | 'scope_kind')[];
|
|
538
|
+
aggregations_only?: boolean;
|
|
539
|
+
};
|
|
540
|
+
sort?: string;
|
|
541
|
+
limit?: number;
|
|
542
|
+
cursor?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface CrossEntitySuggestParams {
|
|
545
|
+
q: string;
|
|
546
|
+
type?: 'trademark' | 'owner' | 'attorney' | 'firm';
|
|
547
|
+
}
|
|
548
|
+
export interface ClassificationTermsParams {
|
|
549
|
+
q: string;
|
|
550
|
+
language?: string;
|
|
551
|
+
harmonised_only?: boolean | null;
|
|
552
|
+
limit?: number;
|
|
553
|
+
}
|
|
554
|
+
export interface DesignCodeListParams {
|
|
555
|
+
q?: string;
|
|
556
|
+
depth?: number;
|
|
557
|
+
category?: string;
|
|
558
|
+
limit?: number;
|
|
559
|
+
cursor?: string;
|
|
560
|
+
}
|
|
561
|
+
export interface PortfolioCreateParams {
|
|
562
|
+
name: string;
|
|
563
|
+
description?: string;
|
|
564
|
+
metadata?: Record<string, string>;
|
|
565
|
+
}
|
|
566
|
+
export interface PortfolioUpdateParams {
|
|
567
|
+
name?: string;
|
|
568
|
+
description?: string | null;
|
|
569
|
+
metadata?: Record<string, string | null>;
|
|
570
|
+
}
|
|
571
|
+
export interface PortfolioListParams {
|
|
572
|
+
sort?: string;
|
|
573
|
+
limit?: number;
|
|
574
|
+
cursor?: string;
|
|
575
|
+
}
|
|
576
|
+
export interface PortfolioRetrieveParams {
|
|
577
|
+
limit?: number;
|
|
578
|
+
cursor?: string;
|
|
579
|
+
}
|
|
580
|
+
export interface PortfolioAddMarksBody {
|
|
581
|
+
trademark_ids: string[];
|
|
582
|
+
}
|
|
583
|
+
export interface PortfolioRemoveMarksBody {
|
|
584
|
+
trademark_ids: string[];
|
|
585
|
+
}
|
|
586
|
+
export interface PortfolioDeadlineParams {
|
|
587
|
+
due_before: string;
|
|
588
|
+
type?: string;
|
|
589
|
+
limit?: number;
|
|
590
|
+
cursor?: string;
|
|
591
|
+
}
|
|
592
|
+
export interface PortfolioDeadlinesIcalParams {
|
|
593
|
+
reminder_days?: string;
|
|
594
|
+
}
|
|
595
|
+
export interface SavedSearchCreateParams {
|
|
596
|
+
name: string;
|
|
597
|
+
description?: string;
|
|
598
|
+
query: Record<string, unknown>;
|
|
599
|
+
metadata?: Record<string, string>;
|
|
600
|
+
}
|
|
601
|
+
export interface SavedSearchUpdateParams {
|
|
602
|
+
name?: string;
|
|
603
|
+
description?: string | null;
|
|
604
|
+
query?: Record<string, unknown>;
|
|
605
|
+
metadata?: Record<string, string | null>;
|
|
606
|
+
}
|
|
607
|
+
export interface SavedSearchListParams {
|
|
608
|
+
limit?: number;
|
|
609
|
+
cursor?: string;
|
|
610
|
+
}
|
|
611
|
+
export interface SavedSearchExecuteParams {
|
|
612
|
+
limit?: number;
|
|
613
|
+
cursor?: string;
|
|
614
|
+
}
|
|
615
|
+
export interface WatchCreateParams {
|
|
616
|
+
name: string;
|
|
617
|
+
description?: string;
|
|
618
|
+
watch_type: 'status' | 'competitor' | 'class' | 'keyword' | 'portfolio';
|
|
619
|
+
criteria: Record<string, unknown>;
|
|
620
|
+
triggers: Array<'new_filing' | 'status_change' | 'any_change'>;
|
|
621
|
+
delivery_channels?: Array<'api' | 'webhook' | 'email' | 'slack' | 'teams'>;
|
|
622
|
+
scope_filters?: Record<string, unknown>;
|
|
623
|
+
metadata?: Record<string, string>;
|
|
624
|
+
}
|
|
625
|
+
export interface WatchUpdateParams {
|
|
626
|
+
name?: string;
|
|
627
|
+
description?: string | null;
|
|
628
|
+
criteria?: Record<string, unknown>;
|
|
629
|
+
triggers?: Array<'new_filing' | 'status_change' | 'any_change'>;
|
|
630
|
+
delivery_channels?: Array<'api' | 'webhook' | 'email' | 'slack' | 'teams'>;
|
|
631
|
+
scope_filters?: Record<string, unknown>;
|
|
632
|
+
status?: 'active' | 'paused' | 'disabled';
|
|
633
|
+
metadata?: Record<string, string | null>;
|
|
634
|
+
}
|
|
635
|
+
export interface WatchListParams {
|
|
636
|
+
status?: 'active' | 'paused' | 'disabled';
|
|
637
|
+
watch_type?: string;
|
|
638
|
+
sort?: string;
|
|
639
|
+
limit?: number;
|
|
640
|
+
cursor?: string;
|
|
641
|
+
}
|
|
642
|
+
export interface AlertListParams {
|
|
643
|
+
watch_id?: string;
|
|
644
|
+
status?: 'unacknowledged' | 'acknowledged' | 'dismissed';
|
|
645
|
+
severity?: 'high' | 'medium' | 'low' | 'info';
|
|
646
|
+
trademark_id?: string;
|
|
647
|
+
event_type?: string;
|
|
648
|
+
sort?: string;
|
|
649
|
+
limit?: number;
|
|
650
|
+
cursor?: string;
|
|
651
|
+
}
|
|
652
|
+
export interface AlertUpdateStatusBody {
|
|
653
|
+
status: 'acknowledged' | 'dismissed';
|
|
654
|
+
}
|
|
655
|
+
export interface AlertBatchUpdateBody {
|
|
656
|
+
alert_ids: string[];
|
|
657
|
+
status: 'acknowledged' | 'dismissed';
|
|
658
|
+
}
|
|
659
|
+
export interface OrgEventListParams {
|
|
660
|
+
'event_type[]'?: string[];
|
|
661
|
+
'office_code[]'?: string[];
|
|
662
|
+
trademark_id?: string;
|
|
663
|
+
since?: string;
|
|
664
|
+
cursor?: string;
|
|
665
|
+
limit?: number;
|
|
666
|
+
}
|
|
667
|
+
export interface ApiKeyCreateParams {
|
|
668
|
+
name: string;
|
|
669
|
+
scopes: string[];
|
|
670
|
+
expires_at?: string | null;
|
|
671
|
+
metadata?: Record<string, string>;
|
|
672
|
+
}
|
|
673
|
+
export interface ApiKeyUpdateParams {
|
|
674
|
+
name?: string;
|
|
675
|
+
scopes?: string[];
|
|
676
|
+
expires_at?: string | null;
|
|
677
|
+
metadata?: Record<string, string | null>;
|
|
678
|
+
}
|
|
679
|
+
/** Per-request overrides. Accepted as the last argument on every method. */
|
|
680
|
+
export interface RequestOptions {
|
|
681
|
+
/** Request timeout in ms. Overrides client default. */
|
|
682
|
+
timeout?: number;
|
|
683
|
+
/** Max retries. Overrides client default. */
|
|
684
|
+
max_retries?: number;
|
|
685
|
+
/** Extra headers merged with client defaults. */
|
|
686
|
+
headers?: Record<string, string>;
|
|
687
|
+
/** Idempotency key for future write operations. */
|
|
688
|
+
idempotency_key?: string;
|
|
689
|
+
}
|
|
690
|
+
/** Client constructor options. */
|
|
691
|
+
export interface ClientOptions {
|
|
692
|
+
/** API key. Falls back to SIGNA_API_KEY env var. */
|
|
693
|
+
api_key?: string;
|
|
694
|
+
/** Base URL. Default: https://api.signa.so */
|
|
695
|
+
base_url?: string;
|
|
696
|
+
/** Default request timeout in ms. Default: 30000. */
|
|
697
|
+
timeout?: number;
|
|
698
|
+
/** Default max retries on 429/5xx. Default: 2. */
|
|
699
|
+
max_retries?: number;
|
|
700
|
+
/** Log request/response to stderr. Default: false. */
|
|
701
|
+
debug?: boolean;
|
|
702
|
+
/** Custom fetch implementation (for testing or platform overrides). */
|
|
703
|
+
fetch?: typeof globalThis.fetch;
|
|
704
|
+
}
|
|
705
|
+
/** API list response shape (before SDK wraps it as SignaList). */
|
|
706
|
+
export interface ListResponseBody<T> {
|
|
707
|
+
object: 'list';
|
|
708
|
+
data: T[];
|
|
709
|
+
has_more: boolean;
|
|
710
|
+
pagination: {
|
|
711
|
+
cursor: string | null;
|
|
712
|
+
total_count?: number;
|
|
713
|
+
};
|
|
714
|
+
request_id: string;
|
|
715
|
+
search_meta?: SearchMeta;
|
|
716
|
+
/** Faceted aggregation buckets (V2 search and saved search results). */
|
|
717
|
+
aggregations?: Record<string, Record<string, number>>;
|
|
718
|
+
}
|
|
719
|
+
//# sourceMappingURL=types.d.ts.map
|